Advertisement
Guest User

Sys Gotanja kao na Skill Areni :D

a guest
Mar 20th, 2018
1,360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. YCMD:goto(playerid, params[],help)
  2. {
  3.  
  4. if(PlayerInfo[playerid][pRadi] == 1) return SCM(playerid,-1,"Vas Server | "CRVENA"Radis posao ne mozes da koristis ovu komandu!");
  5. new string[128], giveplayerid;
  6. if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pPromoter] >= 1 || PlayerInfo[playerid][pVip] >= 1)
  7. {
  8. if( !sscanf(params, "u", giveplayerid ) ) {
  9. if( giveplayerid == INVALID_PLAYER_ID ) return SCM(playerid, -1,""CRVENA"Igrac nije povezan!");
  10. SCM(playerid, -1,""SRWBOJA"[Vas Server]"BELA"Poslali ste zahtjev za teleport, pricekajte malo!");
  11. format( string, sizeof( string ), ""SRWBOJA"Igrac "BELA"%s vam je poslao zahtev za /goto !:", GetName( playerid ) );
  12. SPD( giveplayerid, 2115, DSB, "Zahtev za Goto", string, "Prihvati", "Odbij" );
  13. SetTimerEx("ZahtevZaGoto", 4200, false, "i", playerid);
  14. }
  15. else SCM(playerid, -1,""ZUTA"PORT Pomoc | "BELA"/goto [ID/Nick]");
  16. }
  17. else SCM(playerid, -1,""CRVENA"[PORT] "BELA"Samo Admini - GM i V.I.P!");
  18. return 1;
  19. }
  20.  
  21. /////timer
  22. forward ZahtevZaGoto(playerid);
  23. public ZahtevZaGoto(playerid)
  24. {
  25. new Float:plx,Float:ply,Float:plz;
  26. new string[265], giveplayerid, giveplayer[MAX_PLAYER_NAME];
  27. if(PlayerInfo[giveplayerid][pPrihvatioZahtev] == 1)
  28. {
  29. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerPos(giveplayerid, plx, ply, plz);
  30. if (GetPlayerState(playerid) == 2)
  31. {
  32. new tmpcar = GetPlayerVehicleID(playerid);
  33. SetVehiclePos(tmpcar, plx, ply+4, plz);
  34. }
  35. else
  36. {
  37. SetPlayerPos(playerid,plx,ply+2, plz);
  38. }
  39. SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
  40. SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
  41.  
  42. format(string, sizeof(string),""ZUTA"[PORT] "BELA"Portao si se do igraca %s.",GetName(giveplayerid));
  43. SCM(playerid, -1, string);
  44. new arank[124];
  45. if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin Level 1"; }
  46. else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin Level 2"; }
  47. else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin Level 3"; }
  48. else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin Level 4"; }
  49. else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Admin Level 5 (Head-Admin)"; }
  50. else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
  51. else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Vlasnik"; }
  52. else if(PlayerInfo[playerid][pGM] == 1) { arank = "GameMaster Level 1"; }
  53. else if(PlayerInfo[playerid][pGM] == 2) { arank = "GameMaster Level 2"; }
  54. else if(PlayerInfo[playerid][pGM] == 3) { arank = "GameMaster Level 3"; }
  55. else if(PlayerInfo[playerid][pImunitet] == 1) { arank = "Spec Team"; }
  56. else if(PlayerInfo[playerid][pVip] == 1) { arank = "Vip Level 1"; }
  57. else if(PlayerInfo[playerid][pVip] == 2) { arank = "Vip Level 2"; }
  58. else if(PlayerInfo[playerid][pVip] == 3) { arank = "Vip Level 3"; }
  59. else if(PlayerInfo[playerid][pVip] == 4) { arank = "Vip Level 4"; }
  60. else if(PlayerInfo[playerid][pVip] == 5) { arank = "Premium"; }
  61. format(string, sizeof(string),""ZUTA"[PORT] "BELA"%s %s se portao do vas.",arank, GetName( playerid ) );
  62. SCM(giveplayerid, -1, string);
  63. }
  64. return 1;
  65. }
  66.  
  67. ///fdialog
  68. fDialog(2115)
  69. {
  70. if( response )
  71. {
  72. SCM(playerid, -1, ""SRWBOJA"[NK:RPG] "BELA"Prihvatili ste zahtjev za goto!");
  73. SetTimerEx("ZahtevZaGoto", 4200, false, "i", giveplayerid);
  74. PlayerInfo[playerid][pPrihvatioZahtev] = 1;
  75. }
  76. else
  77. {
  78. SCM(playerid, -1, ""SRWBOJA"[NK:RPG] "BELA"Odbili ste zahtev za goto!");
  79. PlayerInfo[playerid][pPrihvatioZahtev] = 0;
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement