02.07.2011, 17:19
Here another quick function because I got bored a little.
The function is a little bit like 'Random()', but my version only choses from given numbers.
this could be usefull for random skins.
Example:
in this case your skin whil be a 'Law Enforcement' skin.
Код:
stock choose({int,_}:...) { new numbers = numargs(); new numb = random(numbers*100); // I added '100' to make it be a bit more random return getarg(numb/100); }
this could be usefull for random skins.
Example:
Код:
SetPlayerSkin(playerid, choose(165, 166, 280, 281, 282, 283, 284, 288)