TahirUcar

SA-MP Rastgele Spawn

Feb 5th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.02 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------------------------------");
  8.     print(" Rastgele Spawn");
  9.     print("--------------------------------------\n");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. #else
  19. #endif
  20.  
  21. new Float:RastgeleSpawn[][] =
  22. {
  23.     {113.8429,1476.8076,10.6296,358.7804},
  24.     {-338.1666,1770.7394,42.7401,116.4922},
  25.     {130.2913,1822.7539,17.6406,245.4214},
  26.     {384.0814,-1923.6614,10.6297,69.7269},
  27.     {864.6097,-1665.6898,13.5469,260.1902},
  28.     {-1592.0409,2685.3291,55.3430,24.6034},
  29.     {-115.7950,-1536.2228,2.7379,119.6063},
  30.     {-1691.4535,1355.9893,7.1797,169.2772},
  31.     {-153.8760,1218.3271,19.7422,65.5671},
  32.     {343.6621,-14.3351,1.9522,189.5219}
  33. };
  34.  
  35. public OnPlayerSpawn(playerid)
  36. {
  37.     new rastgele = random(sizeof(rastgele));
  38.     SetPlayerPos(playerid, RastgeleSpawn[rastgele][0], RastgeleSpawn[rastgele][1], RastgeleSpawn[rastgele][2]);
  39.     SetPlayerFacingAngle(playerid, RastgeleSpawn[rastgele][3]);
  40.     return 1;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment