Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn(playerid)
- {
- new RandomSpawn1 = random(10);
- if (RandomSpawn1 == 1)
- {
- SetPlayerPos(playerid,-1130.6060,1058.2223,1346.4141); // BattlegroundSpawn1
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 2)
- {
- SetPlayerPos(playerid,-974.3312,1061.0431,1345.6760,94.4649); // BattlegroundSpawn2
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 3)
- {
- SetPlayerPos(playerid,-1018.8731,1022.9221,1343.8438,29.3611); // BattlegroundSpawn3
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 4)
- {
- SetPlayerPos(playerid,-1045.8684,1070.4261,1344.0577,53.4880}; // BattlegroundSpawn4
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 5)
- {
- SetPlayerPos(playerid,-1126.7399,1097.0963,1345.7648,176.2925); // BattlegroundSpawn5
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 6)
- {
- SetPlayerPos(playerid,-1133.5797,1029.0302,1345.7410,275.4517); // BattlegroundSpawn6
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 7)
- {
- SetPlayerPos(playerid,-1095.1564,1018.8509,1344.7233,0.9925); // BattlegroundSpawn7
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 8)
- {
- SetPlayerPos(playerid,-1021.6523,1055.7770,1342.7556,301.0003); // BattlegroundSpawn8
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 9)
- {
- SetPlayerPos(playerid,-979.9532,1020.7057,1345.0085,359.1125); // BattlegroundSpawn9
- SendClientMessage(playerid,"You spawned randomly!");
- }
- if (RandomSpawn1 == 10)
- {
- SetPlayerPos(playerid,-973.3989,1089.5226,1344.9857,93.4267); // BattlegroundSpawn10
- SendClientMessage(playerid,"You spawned randomly!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement