Guest User

Cities

a guest
Sep 29th, 2010
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. #include <a_samp>
  2. #include <City>
  3.  
  4. #define yellow 0xFFFF00AA
  5.  
  6. new LV;
  7.  
  8. public OnFilterScriptInit()
  9. {
  10. print("\n--------------------------------------");
  11. print(" Example FS for CityCreate [INC] ");
  12. print("--------------------------------------\n");
  13.  
  14. LV = CityCreate("LasVenturas", 805.7734, 525.5044, 2919.469, 2942.825);
  15. C_Startup();
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. DestroyCity(LV);
  22. C_End();
  23. return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28. C_OnPlayerConnect(playerid);
  29. return 1;
  30. }
  31.  
  32. public OnPlayerDisconnect(playerid, reason)
  33. {
  34. C_OnPlayerDisconnect(playerid);
  35. return 1;
  36. }
  37.  
  38. public OnPlayerSpawn(playerid)
  39. {
  40. LV = CityCreateForPlayer("LasVenturas", playerid, 805.7734, 525.5044, 2919.469, 2942.825);
  41. return 1;
  42. }
  43.  
  44. public OnPlayerDeath(playerid, killerid, reason)
  45. {
  46. return 1;
  47. }
  48.  
  49. public OnPlayerEnterCity(playerid,cityid)
  50. {
  51. if(cityid == LV)
  52. {
  53. SendClientMessage(playerid,0x67F6F6AA,"You have entered the city Las Venturas!");
  54. }
  55. return 1;
  56. }
  57.  
  58. public OnPlayerExitCity(playerid,cityid)
  59. {
  60. if(cityid == LV)
  61. {
  62. SendClientMessage(playerid,0x67F6F6AA,"You have left Las Venturas");
  63. }
  64. return 1;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment