whiplk

Variaveis randomizadas

Jan 29th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. enum WII_RANDOM
  2. {
  3.     wiiModel,
  4.     Float:wii_X,
  5.     Float:wii_Y,
  6.     Float:wii_Z,
  7.     Float:wii_A,
  8.     wiiC1,
  9.     wiiC2,
  10.     wii_RESPAWN
  11. }
  12.  
  13. static const WII_VARS[][ WII_RANDOM ]
  14. {
  15.     {560, 1.0, 2.0, 3.0, 4.0, 126, 0, 1}
  16. };
  17. new ii = random(sizeof(WII_VARS));
  18. CreateVehicle(WII_VARS[ii][wiiModel],WII_VARS[ii][wii_X],WII_VARS[ii][wii_Y],WII_VARS[ii][wii_Z],WII_VARS[ii][wii_A],WII_VARS[ii][wiiC1],WII_VARS[ii][wiiC2],WII_VARS[ii][wii_RESPAWN]);
Advertisement
Add Comment
Please, Sign In to add comment