07.12.2016, 23:28
PHP код:
CMD:desbugar(playerid, params[]) {
new idplayer, aname[MAX_PLAYER_NAME], string[124];
if(sscanf(params, "d", idplayer)) return SendClientMessage(playerid, 0xFF0000AA, "[ERRO] use: /desbugar [playerid]");
if(!IsPlayerConnected(idplayer)) return SendClientMessage(playerid, 0xFF0000AA, "[ERRO] este player nгo estб conectado!");
SpawnPlayer(idplayer);
GetPlayerName(idplayer, aname, sizeof(aname));
format(string, sizeof(string), "O(A) Player %s foi desbugado(a)!", aname);
SendClientMessageToAll(0x0080FFAA, string);
return 1;
}