SHARE
TWEET

Untitled

a guest Apr 19th, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. YCMD:goto(playerid, params[],help)
  2. {
  3.     if(PlayerInfo[playerid][pSuspendovan] == 1) return SCM(playerid,-1,""PPLAVA"[UK:RPG]"BELA"VI STE SUSSPENDOVANI VAMA SU KOMANDE ZABRANJENE ");
  4.     if(PlayerInfo[playerid][pRadi] == 1) return SCM(playerid,-1,"[UK:RPG]"PPLAVA"Radis posao ne mozes da koristis ovu komandu!");
  5.     if(PlayerInfo[playerid][pUPUBG] == 1) return SCM(playerid, -1, ""SPLAVA"[UK:RPG] "BELA"Ne Moze da koristite komande na PUBG-U");
  6.     if(PlayerInfo[playerid][pPridruzeneventu] >= 1) return SCM(playerid,-1,"ERROR | "PPLAVA"Ne mozete da koristite komande na eventu !!");
  7.     new string[256], giveplayerid, giveplayer[MAX_PLAYER_NAME];
  8.     new Float:plx,Float:ply,Float:plz, str[256];
  9.     if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
  10.     {
  11.         if( !sscanf(params, "u", giveplayerid ) ) {
  12.             if( giveplayerid == INVALID_PLAYER_ID ) return SCM(playerid, -1,""PPLAVA"Igrac nije povezan!");
  13.             if(giveplayerid == playerid) return SCM(playerid, -1, "Zasto pokuasvas goto na samog sebe, imas li ti MOZGA!");
  14.             if( PlayerInfo[playerid][pHelper] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  15.             GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerPos(giveplayerid, plx, ply, plz);
  16.             if (GetPlayerState(playerid) == 2)
  17.             {
  18.                 new tmpcar = GetPlayerVehicleID(playerid);
  19.                 SetVehiclePos(tmpcar, plx, ply+4, plz);
  20.             }
  21.             else
  22.             {
  23.                 SetPlayerPos(playerid,plx,ply+2, plz);
  24.             }
  25.             SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
  26.             SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
  27.  
  28.             format(string, sizeof(string),""SIVA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
  29.             SCM(playerid, -1, string);
  30.             format(string, sizeof(string),""ZUTA"* [STAFF]: %s se teleportovao do vas",GetName(playerid));
  31.             SCM(giveplayerid, -1, string);
  32.         }
  33.         else SCM(playerid, -1,""PPLAVA"[UK] : "BELA"/goto [ID/Nick]");
  34.     }
  35.     else if(PlayerInfo[playerid][pPromoter] >= 1 || PlayerInfo[playerid][pVip] >= 1 || PlayerInfo[playerid][pSpecteam] >= 1)
  36.     {
  37.         if(giveplayerid != INVALID_PLAYER_ID)
  38.         {
  39.             if( !sscanf(params, "u", giveplayerid ) )
  40.             {
  41.                 if( giveplayerid == INVALID_PLAYER_ID ) return SCM(playerid, -1,""CRVENA"Igrac nije povezan!");
  42.                 if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  43.                 if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pHelper] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  44.                 if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  45.                 if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pHelper] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  46.                 if( PlayerInfo[playerid][pSpecteam] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  47.                 if( PlayerInfo[playerid][pSpecteam] == 1 && PlayerInfo[giveplayerid][pHelper] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  48.                 if( PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  49.                 if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  50.                 if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pHelper] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  51.                 if( PlayerInfo[playerid][pAdmin] < PlayerInfo[giveplayerid][pAdmin]) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
  52.                 if( PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca jer imate trazeni level!");
  53.                 if( PlayerInfo[giveplayerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca koji ima trazeni level!");
  54.                 if( PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca jer ste zatvoreni!");
  55.                 if(PlayerInfo[giveplayerid][pGoto] == 1) return SCM(playerid,-1,""ZUTA"[UK:RPG]"BELA"Igrac je zabranio mogucnost portanja do njega !");
  56.                 if( PlayerInfo[giveplayerid][pZatvor] != 0) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca jer je zatvoren!");
  57.                 if( PlayerInfo[playerid][pWar] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca jer ste u waru!");
  58.                 if( PlayerInfo[giveplayerid][pWar] >= 1) return SCM(playerid,-1,"[UK:RPG] | "SPLAVA"Ne mozete se portati do igraca jer je u waru!");
  59.                 if(giveplayerid == playerid) return SCM(playerid, -1, "Zasto pokuasvas goto na samog sebe, imas li ti MOZGA!");
  60.  
  61.                 format(str, sizeof(str), "Igrac {1A80D2}%s{FFFFFF} trazi mogucnost portanja do vas.", GetName(playerid));
  62.                 SPD(giveplayerid, 4237, DSB, "GOTO ZAHTJEV", str, D_POTVRDI, "{FC3F3F}ODBIJ");
  63.                 SCM(playerid, -1, ""PPLAVA"[UK:RPG] "BELA"Poslali ste zahtev za port.");
  64.                 PrihvataGoto[ giveplayerid ] = playerid;
  65.             }
  66.             else SCM(playerid, -1,""PPLAVA"PORT Pomoc | "BELA"/goto [ID/Nick]");
  67.         }
  68.     }
  69.     return 1;
  70. }
  71. ////////////////////////////////////////////////////////////////////////////////////////////////////////
  72. fDialog(4237)
  73. {
  74.     new id = PrihvataGoto[ playerid ];
  75.     if(response)
  76.     {
  77.             if(!IsPlayerConnected(id))
  78.             {
  79.                 SCM(playerid, -1, ""PPLAVA"[UK:RPG] "BELA"Taj igrac je "CRVENA"offline"BELA".");
  80.                 PrihvataGoto[ playerid ] = -1;
  81.             }
  82.             else
  83.             {
  84.                 new Float:Xx, Float:Yy, Float:Zz, Float:Aa;
  85.                 GetPlayerPos(playerid, Xx,Yy,Zz); GetPlayerFacingAngle(playerid, Aa);
  86.                 if(GetPlayerState(id) != PLAYER_STATE_DRIVER)
  87.                 {
  88.                     SetPlayerPos(id, Xx+1,Yy+1,Zz); SetPlayerFacingAngle(id, Aa); PrihvataGoto[ playerid ] = -1;
  89.                 }
  90.                 else
  91.                 {
  92.                     SetVehiclePos(GetPlayerVehicleID(id), Xx+2,Yy+3,Zz);
  93.                     SetVehicleZAngle(GetPlayerVehicleID(id), Aa);
  94.                     PrihvataGoto[ playerid ] = -1;
  95.                 }
  96.             }
  97.             new string[60];
  98.             format(string, sizeof(string),""PPLAVA"[UK:RPG] "BELA"%s se teleportovao do tebe.",GetName(playerid));
  99.             SCM(id, -1, string);
  100.     }
  101.     else
  102.     {
  103.         SCM(id, -1, ""PPLAVA"[UK:RPG] "BELA"Vas zahtev za /goto je "CRVENA2"odbijen"BELA".");
  104.         PrihvataGoto[ playerid ] = -1;
  105.     }
  106.     return 1;
  107. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top