07.10.2018, 11:24
hello
I need command that selects a random player from the server and gives him a random amount of money
I need command that selects a random player from the server and gives him a random amount of money
YCMD:randomgive(playerid, params[], help)
{
new
randomPlayer = Iter_Random(Player),
randomSum = 1000 + random(9555);
GivePlayerMoney(randomPlayer, randomSum);
return 1;
}