30.08.2013, 15:00
pawn Код:
if(strcmp(cmd, "/dardinhero", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new id, dinhero;
tmp = strtok(cmdtext, idx);
id = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COR_USOCORRETO, "Uso: /dardinhero [id do player] [Quantidade]");
dinhero = strval(tmp);
SendClientMessage(playerid, COR_PRINCIPAL, "Vocк deu Dinheiro.");
PlayerInfo[id][pDinheiro] += dinhero;
}
return 1;
}