how to make a random command?
#1

hey people i'm posting to ask how i could do a random command, like that gives a weapon between defined ids

ex :

i type /random

it could give me the weapon id 21, 22,23,24,25,26,27,28,29 or 30

i though about :

if(strcmp(cmdtext, "/random", true) == 0)
{
new random { its here that i don't know what to do};
GivePlayerWeapon(playerid, random, 200);
return 1;
}
Reply


Messages In This Thread
how to make a random command? - by pmk1 - 12.08.2010, 02:30
Re: how to make a random command? - by Toribio - 12.08.2010, 02:44

Forum Jump:


Users browsing this thread: 1 Guest(s)