02.02.2011, 17:23
tente usar isto:
pawn Код:
//
if(strcmp(cmd, "/irfila", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "USE: /irfila [numero]");
return 1;
}
for(new i; i < MAX_PLAYERS; i++)
{
if(fila[i] == tmp)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
SetPlayerPos(playerid,x, y, z);
fila[i] = 0;
return 1;
}
}
return 1;
}