[HELP] Custom teleport command
#2

Try:

pawn Код:
if(!strcmp(cmdtext, "/port"))
{
    new tmp[256], tmp2[256], tmp3[256], idx;
    tmp=strtok(cmdtext, idx); tmp2=strtok(cmdtext, idx); tmp3=strtok(cmdtext, idx);
    new Float:x, Float:y, Float:z;
    x=floatstr(tmp); y=floatstr(tmp2); z=floatstr(tmp3);
    SetPlayerPos(playerid, x,y,z);
    return 1;
}
I just typed this fast, dunno if it works. ^^
Reply


Messages In This Thread
[HELP] Custom teleport command - by Pooh7 - 18.10.2010, 13:35
Re: [HELP] Custom teleport command - by Jeffry - 18.10.2010, 13:42
Re: [HELP] Custom teleport command - by Pooh7 - 18.10.2010, 13:59
Re: [HELP] Custom teleport command - by Jeffry - 18.10.2010, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)