Advertisement
Guest User

Untitled

a guest
Dec 1st, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. CMD:aerols(playerid, params[])
  2. {
  3. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  4. if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1642.3228,-2237.8171,13.4983)) return SCM(playerid, -1, "SERVER: Nu esti la aeroportul din Los Santos");
  5. if(PlayerInfo[playerid][pWantedLevel] >= 1) return SCM(playerid, -1, "SERVER: Nu poti folosi aceasta comanda deoarece ai wanted.");
  6. ShowPlayerDialog(playerid, 7777, DIALOG_STYLE_TABLIST_HEADERS, "Aeroport Los Santos",
  7. "Linia\tPret\n\
  8. Los Santos - San Fierro\t$20,000\t100\n\
  9. Los Santos - Las Venturas\t$20,000",
  10. "Select", "Cancel");
  11. return 1;
  12. }
  13.  
  14. if(dialogid == 7777)
  15. {
  16. if(response)
  17. {
  18. switch(listitem)
  19. {
  20. case 0:
  21. {
  22. SetPlayerInterior(playerid,1);//sf
  23. PlayerInfo[playerid][pInt] = 1;
  24. SetPlayerPos(playerid, 1.7560,25.2154,1199.5938);
  25. SetTimer("aerolssftimer" ,20000 ,false);
  26. SetPlayerVirtualWorld(playerid, 0);
  27. GivePlayerCash(playerid,-1000);
  28. Update(playerid,pCashx);
  29. }
  30. case 1:
  31. {
  32. SetPlayerInterior(playerid,1);//lv
  33. PlayerInfo[playerid][pInt] = 1;
  34. SetPlayerPos(playerid, 1.7560,25.2154,1199.5938);
  35. SetTimer("aerolslvtimer" ,20000 ,false);
  36. SetPlayerVirtualWorld(playerid, 1);
  37. GivePlayerCash(playerid,-1000);
  38. Update(playerid,pCashx);
  39. }
  40. }
  41. }
  42. return 1;
  43. }
  44.  
  45. forward aerolslvtimer(playerid);//ls
  46. public aerolslvtimer(playerid)
  47. {
  48. SetPlayerInterior(playerid,0);
  49. PlayerInfo[playerid][pInt] = 0;
  50. SetPlayerPos(playerid, 1673.0015,1447.8682,10.7867);
  51. SetPlayerVirtualWorld(playerid, 0);
  52. SendClientMessage(playerid, -1, "SERVER: Ai aterizat in orasul Las Venturas!");
  53. return 1;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement