09.10.2016, 16:41
Quote:
X445 I think you mis-read what he wanted.
He wants to be able to type a command /test, and it will randomly give him different stuff. here is an example. Код:
CMD:test( playerid, params[] ) { new rand = Random( 11 ); switch( rand ) { case 0 .. 2: // if rand is between 0 and 2 then run the code here { // Give Money Here } case 3 .. 5: // if rand is between 3 and 5 then run the code here { // Give Weapons Here } case 6 .. 8: // if rand is between 6 and 8 then run the code here { // Give Health or Armour } case 9 .. 11: // if rand is between 9 and 11 then run the code here { // Change Skin } } return 1; } |