Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Rastgele Spawn");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- new Float:RastgeleSpawn[][] =
- {
- {113.8429,1476.8076,10.6296,358.7804},
- {-338.1666,1770.7394,42.7401,116.4922},
- {130.2913,1822.7539,17.6406,245.4214},
- {384.0814,-1923.6614,10.6297,69.7269},
- {864.6097,-1665.6898,13.5469,260.1902},
- {-1592.0409,2685.3291,55.3430,24.6034},
- {-115.7950,-1536.2228,2.7379,119.6063},
- {-1691.4535,1355.9893,7.1797,169.2772},
- {-153.8760,1218.3271,19.7422,65.5671},
- {343.6621,-14.3351,1.9522,189.5219}
- };
- public OnPlayerSpawn(playerid)
- {
- new rastgele = random(sizeof(rastgele));
- SetPlayerPos(playerid, RastgeleSpawn[rastgele][0], RastgeleSpawn[rastgele][1], RastgeleSpawn[rastgele][2]);
- SetPlayerFacingAngle(playerid, RastgeleSpawn[rastgele][3]);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment