01.05.2011, 18:39
pawn Code:
dcmd_dargrana(playerid, params[])
{
if(sscanf(params, "ud",params[0],params[1]))
{
return SendClientMessage(playerid, 0xB4B5B7FF, "Usage /dargrana [playerid] [dinheiro]");
}
else if(!IsPlayerConnected(params[0])
{
return SendClientMessage(playerid, 0xFF0000AA, " ID INVБLIDO !");
}
else if(params[1] < 1 && grana > params[1]))
{
return SendClientMessage(playerid, 0xC2A2DAAA, " Os valores devem estar entre R$ 1 e R$ 100.000");
}
else
{
return GivePlayerMoney(giveplayerid, grana);
}
return true;
}
pawn Code:
CMD:dargrana(playerid,params[])