Advertisement
Guest User

Untitled

a guest
Aug 4th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1.  
  2. public OnPlayerSpawn(playerid)
  3. {
  4. new RandomSpawn1 = random(10);
  5. if (RandomSpawn1 == 1)
  6. {
  7. SetPlayerPos(playerid,-1130.6060,1058.2223,1346.4141); // BattlegroundSpawn1
  8. SendClientMessage(playerid,"You spawned randomly!");
  9. }
  10. if (RandomSpawn1 == 2)
  11. {
  12. SetPlayerPos(playerid,-974.3312,1061.0431,1345.6760,94.4649); // BattlegroundSpawn2
  13. SendClientMessage(playerid,"You spawned randomly!");
  14. }
  15. if (RandomSpawn1 == 3)
  16. {
  17. SetPlayerPos(playerid,-1018.8731,1022.9221,1343.8438,29.3611); // BattlegroundSpawn3
  18. SendClientMessage(playerid,"You spawned randomly!");
  19. }
  20. if (RandomSpawn1 == 4)
  21. {
  22. SetPlayerPos(playerid,-1045.8684,1070.4261,1344.0577,53.4880}; // BattlegroundSpawn4
  23. SendClientMessage(playerid,"You spawned randomly!");
  24. }
  25. if (RandomSpawn1 == 5)
  26. {
  27. SetPlayerPos(playerid,-1126.7399,1097.0963,1345.7648,176.2925); // BattlegroundSpawn5
  28. SendClientMessage(playerid,"You spawned randomly!");
  29. }
  30. if (RandomSpawn1 == 6)
  31. {
  32. SetPlayerPos(playerid,-1133.5797,1029.0302,1345.7410,275.4517); // BattlegroundSpawn6
  33. SendClientMessage(playerid,"You spawned randomly!");
  34. }
  35. if (RandomSpawn1 == 7)
  36. {
  37. SetPlayerPos(playerid,-1095.1564,1018.8509,1344.7233,0.9925); // BattlegroundSpawn7
  38. SendClientMessage(playerid,"You spawned randomly!");
  39. }
  40. if (RandomSpawn1 == 8)
  41. {
  42. SetPlayerPos(playerid,-1021.6523,1055.7770,1342.7556,301.0003); // BattlegroundSpawn8
  43. SendClientMessage(playerid,"You spawned randomly!");
  44. }
  45. if (RandomSpawn1 == 9)
  46. {
  47. SetPlayerPos(playerid,-979.9532,1020.7057,1345.0085,359.1125); // BattlegroundSpawn9
  48. SendClientMessage(playerid,"You spawned randomly!");
  49. }
  50. if (RandomSpawn1 == 10)
  51. {
  52. SetPlayerPos(playerid,-973.3989,1089.5226,1344.9857,93.4267); // BattlegroundSpawn10
  53. SendClientMessage(playerid,"You spawned randomly!");
  54. return 1;
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement