01.12.2009, 22:51
That's because I've used DCMD
look up https://sampwiki.blast.hk/wiki/Fast_Commands
or just use this code:
look up https://sampwiki.blast.hk/wiki/Fast_Commands
or just use this code:
pawn Код:
if(!strcmp(cmdtext, "/x", true))
{
new
Float:x,
Float:y,
Float:z;
if(cmdtext[2] != 32 || cmdtext[3] == EOS)
return SendClientMessage(playerid, 0xFFFF00FF, "USAGE: \"/x [positive or negative float]\"");
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x+floatstr(cmdtext[3]), y, z);
return true;
}