PHP код:
CMD:setprof(playerid, params[])
{
new id, string[500];
new aname[24], pname[24];
GetPlayerName(id, aname, sizeof(aname));
GetPlayerName(playerid, pname, sizeof(pname));
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "| ERRO | Vocк nгo estб logado na RCON.");
if(sscanf(params, "d", id))return SendClientMessage (playerid, -1, "| ERRO | Uso Correto: /Setprof [id]." );
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "| ERRO | Player nгo conectado.");
SendClientFormat(id, -1, "O(A) admin %s tornou vocк um(a) caminhoneiro(a).", pname);
SendClientFormat(playerid, -1, "Vocк setou o(a) %s um(a) caminhoneiro(a).", aname);
Prof[id][Profissao] = Caminhoneiro;
SetPlayerPos(id, 1381.920654, -1021.684020, 10.820312);
SetPlayerColor(id, C_Caminhoneiro);
return 1;
}