if(strcmp("/gotocoords", cmd, true) == 0) { if(PlayerInfo[playerid][pAdmin] >= 4) { new coordstr[3][24], Float:coords[3]; tmp = strtok(cmdtext, idx); if(!strlen(tmp) || !strfind(tmp,",",false)) return SendClientMessage(playerid, COLOR_BENUTZETEXT,"Benutze: /gotocoords [X,Y,Z]"); split(tmp,coordstr,','); coords[0] = floatstr(coordstr[0]); coords[1] = floatstr(coordstr[1]); coords[2] = floatstr(coordstr[2]); SetPlayerPos(playerid,coords[0],coords[1],coords[2]); format(string,sizeof(string)," Du hast dich teleportiert. - Nicht ausnutzen ! (X: %f | Y: %f | Z: %f)",coords[0],coords[1],coords[2]); SendClientMessage(playerid,COLOR_YELLOW,string); format(string,sizeof(string),"Admin %s hat sich teleportiert.", sendername); EnterToLog("goto",string); } return 1; }