Pomoc u skripti

Započeo Inas Karahmet, Avgust 30, 2017, 12:16:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

CMD:goto(playerid, params[])
{

   if(UlogovanProvera[playerid] == 0) return Ulogovan(playerid);
   new string[128], giveplayerid, giveplayer[MAX_PLAYER_NAME];
   new Float:plx,Float:ply,Float:plz;
   GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
   if(Vremeposla[playerid] != 0) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Ne mozes to sad!");
   if(PlayerInfo[playerid][pZatvorenVreme] != 0) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Zatvoreni ste!");
   if(PlayerInfo[playerid][pTrazeniLevel] != 0) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Imate WL!");
   if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pVip] >= 2)
   {
       if(!sscanf(params, "u", giveplayerid))
      {
         if(!IsPlayerConnected(giveplayerid)) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Pogresan ID!");
         if(PlayerInfo[giveplayerid][pSpecanje] == 1) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Ta osoba speca nekoga!");
         if(PlayerInfo[giveplayerid][pAdmin] == 6) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Nemozete se Portati do Vlasnika!");
         if(PlayerInfo[giveplayerid][pTrazeniLevel] != 0) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Ta osoba ima WL!");
         if(PlayerInfo[giveplayerid][pZatvorenVreme] != 0) return SCM(playerid, -1, ""ORANGE"#GRESKA:"BELA"Ta osoba je zatvorena!");
         GetPlayerPos(giveplayerid, plx, ply, plz);
         if (GetPlayerState(playerid) == 2)
         {
            new tmpcar = GetPlayerVehicleID(playerid);
            SetVehiclePos(tmpcar, plx, ply+4, plz);
         }
         else
         {
            SetPlayerPos(playerid,plx,ply+2, plz);
         }
         SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
         format(string, sizeof(string),""ORANGE"[GOTO] "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
         SCM(playerid, -1, string);
         format(string, sizeof(string),""ORANGE"[GOTO] "BELA"Igrac %s se teleportovao do tebe.",GetName(playerid));
         SCM(giveplayerid, -1, string);
         new strings[500];
         format(strings, sizeof(strings), ""ORANGE"[/goto]"BELA"Igrac %s se teleportao do igraca %s",GetName(playerid),GetName(giveplayerid));
         AdminGameMaster(-1, strings);
      }
      else SCM(playerid, -1,""ORANGE"[ARP - INFO] "BELA"/goto [ID/Nick]");
   }
   else Ovlasteni(playerid);
   return 1;
}



Ovo je goto sistem ali kako da uklonim da vip moze /goto


http://balkan-samp.com/forum/index.php?board=11.0
Ovde postavi temu pre postavljanja i tamo procitaj pravila kako treba da izgleda formular npr.