22.01.2017, 23:57
PHP код:
CMD:setpm(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "Vocк nгo estб logado na RCON");
new id;
if(sscanf(params, "d", id))
return SendClientMessage(playerid, -1,"Use: /setpm [playerid/username]");
if(!IsPlayerConnected(id))
return SendClientMessage(playerid, -1, "Este jogador nгo estб online!");
format(string, sizeof(string),"O %s setou o %s de Policial Militar.", nome(playerid), nome(id));
SendClientMessageToAll(-1, string);
Jogador[id][pPM] = 1;
return 1;
}