26.05.2014, 21:17
comando ir, ta bem basicгo
pawn Код:
if(strcmp(cmd, "/ir", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext,idx);
new playersip[256];
if(!strlen(tmp))
{
SendClientMessage(playerid,Vermelho,"| ERRO | /ir [Player ID/Nome]");
return 1;
}
giveplayerid = ReturnUser(tmp);
GetPlayerPos(giveplayerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
}
return 1;
}