05.07.2020, 16:09
if(strcmp(Comando,"/setpos",true)==0)
{
new plid,Floatetpos[3];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xBFBFBFAA, "USE: /setpos [id] [X] [Y] [Z]");
plid = strval(tmp);
for(new x=0;x<3;x++) {
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xBFBFBFAA, "USE: /setpos [id] [X] [Y] [Z]");
setpos[x] = floatstr(tmp);
}
SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
SendClientMessage(playerid, 0xBFBFBFAA, "Posicao setada!");
return 1;
}
estou tentando colocar esse comando na gm preciso muito desse comando
{
new plid,Floatetpos[3];
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xBFBFBFAA, "USE: /setpos [id] [X] [Y] [Z]");
plid = strval(tmp);
for(new x=0;x<3;x++) {
tmp = strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid, 0xBFBFBFAA, "USE: /setpos [id] [X] [Y] [Z]");
setpos[x] = floatstr(tmp);
}
SetPlayerPos(plid,setpos[0],setpos[1],setpos[2]);
SendClientMessage(playerid, 0xBFBFBFAA, "Posicao setada!");
return 1;
}
estou tentando colocar esse comando na gm preciso muito desse comando