01.05.2014, 12:27
pawn Код:
CMD:darpontos(playerid, params[])
{
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid, -1, "Erro: Nao es adm");
if(sscanf(params, "ud", params[0], params[1]))
return SendClientMessage(playerid, -1, "Uso: /darpontos [id] [pontos]");
if(!IsPlayerConnected(playerid))
return SendClientMessage(playerid, -1, "Erro: Nao se encontra online esse id");
SetPlayerScore(params[0], params[1]);
new PT[128];
format(PT, sizeof(PT), "O Admin deu ao id %d, %d pontos." params[0], params[1]);
SendClientMessageToAll(-1, PT);
return 1;
}