08.08.2011, 12:54
PHP Code:
COMMAND:dargrana(playerid, params[])
{
if (IsPlayerAdmin(playerid))
{
new
toplayerid,
amount;
if (!sscanf(params, "ii", toplayerid, amount))
{
if (toplayerid != INVALID_PLAYER_ID)
{
new
message[40];
GivePlayerMoney(toplayerid, amount);
format(message, sizeof(message), "vocк arecebeu $%d do administrador!", amount);
SendClientMessage(toplayerid, 0x00FF00FF, message);
}
else SendClientMessage(playerid, 0xFF0000FF, "o jogador nгo estб logado");
}
else SendClientMessage(playerid, 0xFFFFFFFF, "Utilizaзгp: /dargrana <iddojogador> <quantia>");
}
else SendClientMessage(playerid, 0xFF0000FF, "Sу administradores podem utilizar este comando!");
return 1;
}