Advertisement
Dayrion

Map

May 14th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.46 KB | None | 0 0
  1. // OnGameModeinit()
  2.     Create3DTextLabel("- Los Santos Amployment Agency -\n Press F to enter", 0xffffffff, 1081.2261, -1697.9417, 13.5469, 40.0, 0, 0); // Los Santos - Job enter | 1081.2261, -1697.9417, 13.5469
  3.     AddStaticPickup(1239, 1, 1081.2261, -1697.9417, 13.5469, 0); // Los Santos - Job enter | 1081.2261, -1697.9417, 13.5469
  4.    
  5.     Create3DTextLabel("- Los Santos Amployment Agency -\n Press F to exit", 0xffffffff, 1702.0747, -1667.7676, 20.2188, 40.0, 1, 0); // Los Santos - Job exit | 1702.0747, -1667.7676, 20.2188
  6.     AddStaticPickup(1239, 1, 1702.0747, -1667.7676, 20.2188, 1); // Los Santos - Job exit  | 1702.0747, -1667.7676, 20.2188
  7.    
  8.     Create3DTextLabel("- JOB 1 -", 0xffffffff, 1734.4955, -1660.0510, 23.7309, 10.0, 1, 0); // Los Santos - EA - JOB 1 | 1734.4955, -1660.0510, 23.7183
  9.     AddStaticPickup(1239, 1, 1734.4955, -1660.0510, 23.7309, 1);
  10.    
  11.     Create3DTextLabel("- JOB 2 -", 0xffffffff, 1734.4955, -1654.4794, 23.7309, 10.0, 1, 0); // Los Santos - EA - JOB 2 | 1734.4866, -1654.4794, 23.7305
  12.     AddStaticPickup(1239, 1, 1734.4955, -1654.4794, 23.7309, 1);
  13.  
  14.     Create3DTextLabel("- JOB 3 -", 0xffffffff, 1734.4955, -1648.4071, 23.7309, 10.0, 1, 0); // Los Santos - EA - JOB 3 | 1734.3845, -1648.4071, 23.7438
  15.     AddStaticPickup(1239, 1, 1734.4955, -1648.4071, 23.7309, 1);
  16.    
  17.     Create3DTextLabel("- JOB 4 -", 0xffffffff, 1734.4955, -1642.4214, 23.7309, 10.0, 1, 0); // Los Santos - EA - JOB 4 | 1734.2845, -1642.4214, 23.7515
  18.     AddStaticPickup(1239, 1, 1734.4955, -1642.4214, 23.7309, 1);
  19. //================================================================================================================================================================================================
  20.  
  21. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) //KEY_SECONDARY_ATTACK
  22. {
  23.     if((newkeys == KEY_SECONDARY_ATTACK) && (oldkeys == 0) && IsPlayerInRangeOfPoint(playerid, 2.0, 1081.2261, -1697.9417, 13.5469)) // employment agency - enter
  24.     {
  25.         SetPlayerInterior(playerid, 18);
  26.         SetPlayerVirtualWorld(playerid, 1);
  27.         SetPlayerPos(playerid, 1702.0747, -1667.7676, 20.2188);
  28.         SendClientMessage(playerid, 0xe60000FF, "Welcome to the Los Santos Employment agency!");
  29.         return 1;
  30.     }
  31.     if((newkeys == KEY_SECONDARY_ATTACK) && (oldkeys == 0) && IsPlayerInRangeOfPoint(playerid, 2.0, 1702.0747, -1667.7676, 20.2188)) // employment agency - exit
  32.     {
  33.         SetPlayerInterior(playerid, 0);
  34.         SetPlayerVirtualWorld(playerid, 0);
  35.         SetPlayerPos(playerid, 1081.2261, -1697.9417, 13.5469);
  36.         return 1;
  37.     }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement