17.05.2014, 18:03
i dont know maybe
but I'm pretty sure it would not work so
but try it with someone and give me the result
EDIT:
also added on top of this command if you want to just about RCON admin
PHP код:
forward BirthDayPresent(playerid);
public BirthDayPresent(playerid)
{
new birth[128]; //string for message
new money = random(50001); // this will give each player random money from 0 to 50000
format (birth, sizeof(birth), "Happy Birthday you get %d money",money); //format message
GivePlayerMoney(playerid,money);
SendClientMessage(playerid,0xADD8E6FF,birth);
return 1;
}
COMMAND:givepresents(playerid,params[])
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
BirthDayPresent(a);
}
return 1;
}
but try it with someone and give me the result
EDIT:
also added on top of this command if you want to just about RCON admin
PHP код:
if(!IsPlayerAdmin(playerid)) return 0;