10.11.2011, 22:45
pawn Код:
if(strcmp(cmd, "/rp", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(pAdmin[playerid] >=1)
{
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "{0099FF}(~){CCCCFF}Use: /rp [playerid]!");
}
else return SendClientMessage(playerid, -1, "Sem authorizaзгo");
plid = strval(tmp);
if(IsPlayerConnected(plid))
{
new vid;
vid = GetPlayerVehicleID(plid);
SetVehicleToRespawn(vid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{0099FF}(~)AdmCmd(~) - {CCCCFF} %s (%d) deu respawn no seu carro !", aname,playerid);
SendClientMessage(plid,outraadm, string);
SendClientMessage(playerid, Verde, "{0099FF}(~){CCCCFF} Comando efetuado com sucesso!");
return 1;
}
else SendClientMessage(playerid, Vermelho, "{0099FF}[x]{CCCCFF} ID invбlido");
return 1;
}