Guest User

Pd

a guest
Feb 3rd, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. new PickupLiftToRoofOfPoliceA,PickupLiftToRoofOfPoliceB;
  2.  
  3. public OnGameModeInit()
  4. {
  5. PickupLiftToRoofOfPoliceA = CreateDynamicPickup(19198, 1, 288.8021,167.5294,1007.1719, 0);
  6. PickupLiftToRoofOfPoliceB = CreateDynamicPickup(19198, 1, -1642.7050,703.0914,38.2422, 0);
  7. return 1;
  8. }
  9.  
  10. public OnPlayerPickUpPickup(playerid, pickupid)
  11. {
  12. if(pickupid == PickupLiftToRoofOfPoliceA)
  13. {
  14. if(PlayerDB[playerid][Job] == 1)
  15. {
  16. SetPlayerPos(playerid, -1645.5242,702.9838,38.2422);
  17. SetPlayerFacingAngle(playerid, 270.2412);
  18. }
  19. else
  20. {
  21. GameTextForPlayer(playerid, "~r~TIK POLICININKAMS", 3000, 3);
  22. }
  23. return 1;
  24. {
  25. else if(pickupid == PickupLiftToRoofOfPoliceB)
  26. {
  27. if(PlayerDB[playerid][Job] == 1)
  28. {
  29. SetPlayerPos(playerid, 288.7903,169.1736,1007.1719);
  30. SetPlayerFacingAngle(playerid, 356.1682);
  31. }
  32. else
  33. {
  34. GameTextForPlayer(playerid, "~r~TIK POLICININKAMS", 3000, 3);
  35. }
  36. return 1;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment