Advertisement
PaulCastellano

kapija

Mar 27th, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1.  
  2. new EliteKapija;
  3. new EliteKapija2;
  4. /////////////////////////////////////////////////////////////////////////////////////////////////
  5. EliteKapija2 = CreateObject(19912, 922.57269, -1598.45911, 15.12887, 0.00000, 0.00000, 359.89496);
  6. EliteKapija = CreateObject(19912, 911.78235, -1762.55945, 14.99759, 0.00000, 0.00000, 175.78325);
  7. //////////////////////////////////////////////////////////////////////////////////////////////////
  8. else if(IsPlayerInRangeOfPoint(playerid, 10.0, 911.78235, -1762.55945, 14.99759)) // Street Elite Family kapija
  9. {
  10. if(PI[playerid][Clan] == 5 || PI[playerid][Lider] == 5)
  11. {
  12. MoveObject(EliteKapija,911.78235, -1762.55945, 9.35681, 2.00); //kordinate otvorene kapije
  13. KapijeTimer[playerid] = SetTimer("KapijaElite", 7000, 0);
  14. format(string, sizeof(string), "* %s vadi daljinski i otvara kapiju Street Elite Family baze.", GetName(playerid));
  15. ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
  16. }
  17. else return SendErrorMessage(playerid, "Nemate daljinski od ove kapije.");
  18. }
  19. else if(IsPlayerInRangeOfPoint(playerid, 10.0, 922.57269, -1598.45911, 15.12887)) // Street Elite Family kapija 2
  20. {
  21. if(PI[playerid][Clan] == 5 || PI[playerid][Lider] == 5)
  22. {
  23. MoveObject(EliteKapija2,922.57269, -1598.45911, 8.98147, 2.00); //kordinate otvorene kapije
  24. KapijeTimer[playerid] = SetTimer("KapijaElite2", 7000, 0);
  25. format(string, sizeof(string), "* %s vadi daljinski i otvara kapiju Street Elite Family baze.", GetName(playerid));
  26. ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
  27. }
  28. else return SendErrorMessage(playerid, "Nemate daljinski od ove kapije.");
  29.  
  30. /////////////////////////////////////////////////////
  31. forward KapijaElite();
  32. public KapijaElite()
  33. {
  34. MoveObject(EliteKapija,911.78235, -1762.55945, 14.99759, 2.00);
  35. return 1;
  36. }
  37. forward KapijaElite2();
  38. public KapijaElite2()
  39. {
  40. MoveObject(EliteKapija2,922.57269, -1598.45911, 15.12887, 2.00);
  41. return 1;
  42. }
  43. ///////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement