Goto

Započeo TONY x, Februar 18, 2018, 20:04:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Detaljan opis problema: Uradio sam goto cmd sam i dacu vam kod nema errora ali opet uvek me porta do samog sebe cak i kad je pogresan id ili nisam ukucao id msm da nije problem do sscanfa jer mi ostale cmd sa sscanfom rade,mozda i jes nez stavljao sam i "i" i "u"
Deo skripte:
[pawn]CMD:goto(playerid,params[])
{
   if(PlayerData[playerid][Ulogovan] < 1) return SCM(playerid, CRVENA,"Morate biti ulogovani da bi ste koristili ovu komandu");
   if(PlayerData[playerid][Asistent] >= 1 || PlayerData[playerid][Administrator] >= 1)
   {
       new targetid;
       new txt[100];
        new Float:X;
       new Float:Y;
       new Float:Z;
       new Float:A;
       if(!IsPlayerConnected(targetid)) return SCM(playerid, CRVENA,"Pogresan ID!");
       if(targetid == playerid) return SCM(playerid, CRVENA,"Nemozes se portati do samog sebe!");
      if(sscanf(params,"i",targetid)) return SCM(playerid, ZUTA,"KORISTI:/goto [ID/Deo imena]");
      GetPlayerName(playerid, Nam, MAX_PLAYER_NAME);
      GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
      format(txt,sizeof(txt),"Administrator %s se teleportovao do vas!",Nam);
      SCM(targetid, ZUTA,txt);

      format(txt,sizeof(txt),"Teleportovao si se do %s!",Nam);
      SCM(playerid, ZUTA,txt);
      GetPlayerPos(targetid, X,Y,Z);
       GetPlayerFacingAngle(targetid, A);
       SetPlayerPos(playerid, X+2,Y+1.5,Z+0.5);
       SetPlayerFacingAngle(playerid, A);
   }
   else
   {
       SCM(playerid, CRVENA,"Moras biti AS | A kako bi koristio ovu komandu");
   }
   return 1;
}[/pawn]
Neke slike/video za lakse dobivanje pomoci(neobavezno): Ima deo skripte

Koji je mod u pitanju?  :D
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

Pa rekao sam ti "uradio sam";
Samim tim 0

U redu,koji mod radis, sta radis  ::)
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

Ako ne zelis da pomognes nemoras..
Pravim RP server,od 0 ako te jos nesto zanjima mogao bi uz to neku muzicku zelju  :-X

Tebra pitao sam te koji mod radis ono
evo ti neke komande pa ne znam ako ti uspe , uspe


///////////////////////////////////////////////////////
YCMD:goto(playerid, params[],help)
{

if(PlayerInfo[playerid][pRadi] == 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Radis posao ne mozes da koristis ovu komandu!");
if(GetPVarInt(playerid,"EditorMode") == 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Zasto bi koristio ovu komanndu kad koristis namestaj sistem, gde ti je MOZAK?!");
new string[128], giveplayerid, giveplayer[MAX_PLAYER_NAME];
new Float:plx,Float:ply,Float:plz;
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pPromoter] >= 1 || PlayerInfo[playerid][pVip] >= 5)
{
if( !sscanf(params, "u", giveplayerid ) ) {
    if( giveplayerid == INVALID_PLAYER_ID ) return SCM(playerid, -1,""nacho_boja"Igrac nije povezan!");
    if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
    if( PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pGM] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
    if( PlayerInfo[playerid][pGM] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
    if( PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 8) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
    if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
            if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pGM] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
            if( PlayerInfo[playerid][pAdmin] < PlayerInfo[giveplayerid][pAdmin]) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji je jaci od vas!");
if( PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::."BELA"Ne mozete se portati do igraca jer imate trazeni level!");
if( PlayerInfo[giveplayerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca koji ima trazeni level!");
if( PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca jer ste zatvoreni!");
if( PlayerInfo[giveplayerid][pGoto] == 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Igrac je zabranio mogucnost portanja do njegal!");
            if( PlayerInfo[giveplayerid][pZatvor] != 0) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca jer je zatvoren!");
if( PlayerInfo[playerid][pWar] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca jer ste u waru!");
if( PlayerInfo[giveplayerid][pWar] >= 1) return SCM(playerid,-1,""nacho_boja".:: VCRPG ::. "BELA"Ne mozete se portati do igraca jer je u waru!");
if(giveplayerid == playerid) return SCM(playerid, -1, "Ne mozes do samog sebe!");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); 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));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));

format(globalstring, sizeof(globalstring), "~r~(AC):~w~ %s se teleportovao do igraca - moguc ~r~AA ~w~[/specon %d] ", GetName(playerid), playerid);
    DodajWarnRed(globalstring);

format(string, sizeof(string),""ZUTA"[PORT]: "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
SCM(playerid, -1, string);
new arank[124];
if(PlayerInfo[playerid][pAdmin] == 1) { arank = "Admin 1"; }
else if(PlayerInfo[playerid][pAdmin] == 2) { arank = "Admin 2"; }
else if(PlayerInfo[playerid][pAdmin] == 3) { arank = "Admin 3"; }
else if(PlayerInfo[playerid][pAdmin] == 4) { arank = "Admin 4"; }
else if(PlayerInfo[playerid][pAdmin] == 5) { arank = "Head Admin"; }
else if(PlayerInfo[playerid][pSkripter] == 2) { arank = "Skripter"; }
else if(PlayerInfo[playerid][pVlasnik] == 1) { arank = "Vlasnik"; }
else if(PlayerInfo[playerid][pAdmin] == 6) { arank = "Direktor"; }
else if(PlayerInfo[playerid][pAdmin] == 7) { arank = "Mapper"; }
else if(PlayerInfo[playerid][pAdmin] == 8) { arank = "Developer"; }
else if(PlayerInfo[playerid][pGM] == 1) { arank = "GameMaster 1"; }
else if(PlayerInfo[playerid][pGM] == 2) { arank = "GameMaster 2"; }
else if(PlayerInfo[playerid][pGM] == 3) { arank = "Vodja GameMastera"; }
else if(PlayerInfo[playerid][pPromoter] == 1) { arank = "Promoter"; }
else if(PlayerInfo[playerid][pVip] == 1) { arank = "Vip Level 1"; }
else if(PlayerInfo[playerid][pVip] == 2) { arank = "Vip Level 2"; }
else if(PlayerInfo[playerid][pVip] == 3) { arank = "Vip Level 3"; }
else if(PlayerInfo[playerid][pVip] == 4) { arank = "Vip Level 4"; }
else if(PlayerInfo[playerid][pVip] == 5) { arank = "Premium"; }
format(string, sizeof(string),""ZUTA"[PORT]: "BELA"%s %s se Teleportovao do tebe.",arank, GetName(playerid));
SCM(giveplayerid, -1, string);
}
else SCM(playerid, -1,""nacho_boja".:: VCRPG ::. "BELA"/goto [ID/Nick]");
}
else SCM(playerid, -1,""nacho_boja".:: VCRPG ::. "BELA"Samo Admini & GameMasteri!");
return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

CMD:goto(playerid, params[])
{
new gotoid;
if(UlogovanIgrac[playerid] == 0) return GRESKA(playerid, "Nisi ulogovan!");
if(TPTime[playerid] == 1 && p_info[playerid][pABS] < 1 && p_info[playerid][pSupporter] < 1 && p_info[playerid][pBETester] < 1 && p_info[playerid][pPromoter] < 1) return GRESKA(playerid, "Moras sacekati 20 sekundi!");
if(p_info[playerid][pABS] < 1 && p_info[playerid][pGM] < 1 && p_info[playerid][pSupporter] < 1 && p_info[playerid][pBETester] < 1 && p_info[playerid][pPromoter] < 1) return GRESKA(playerid, "Nisi ovlascen!");
if(UlogovanIgrac[playerid] == 0) return GRESKA(playerid, "Nisi ulogovan!");
if(PisanjeJok[playerid] == 1) return GRESKA(playerid, "Ne mozes to u ovom momentu.");
if(SupporterDuty[playerid] == 0 && p_info[playerid][pSupporter] == 1) return GRESKA(playerid, "Moras biti na duznosti kao supporter!");
if(PetSec == 1 || trazimb[playerid] == 1) return GRESKA(playerid, "Ne mozes dok se ne nadje moneybag!");
if(sscanf(params, "u", gotoid)) return Cmd(playerid, "/goto (playerid)");
else if(gotoid == IPI) return GRESKA(playerid, "Pogresan ID!");
else if(mbport[gotoid] == 1) return GRESKA(playerid, "Ne mozes do njega sada!");
else if(UlogovanIgrac[gotoid] == 0) return GRESKA(playerid, "Nije ulogovan/a!");
else if(PolicajacNaDuznosti[playerid] == 1 && p_info[playerid][pABS] < 6) return GRESKA(playerid, "Ne mozes to, na duznosti si!");
else if(MedicDuty[playerid] == 1 && p_info[playerid][pABS] < 6) return GRESKA(playerid, "Ne mozes to, na duznosti si!");
else if(p_info[gotoid][pABS] > p_info[playerid][pABS] && p_info[playerid][pABS] > 0) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pGM] > p_info[playerid][pGM] && p_info[playerid][pGM] > 0) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pSupporter] > p_info[playerid][pSupporter] && p_info[playerid][pSupporter] > 0) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pSupporter] > 0 && p_info[playerid][pGM] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pSupporter] > 0 && p_info[playerid][pPromoter] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pABS] > 0 && p_info[playerid][pGM] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pABS] > 0 && p_info[playerid][pPromoter] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pABS] > 0 && p_info[playerid][pSupporter] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pABS] > 0 && p_info[playerid][pBETester] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pSupporter] > 0 && p_info[playerid][pBETester] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[gotoid][pGM] > 0 && p_info[playerid][pBETester] > 0 && p_info[playerid][pABS] < 1) return GRESKA(playerid, "Ne mozete se portati do gradjanina koji je jaci od vas!");
else if(p_info[playerid][pSupporter] < 1 && p_info[playerid][pABS] < 1 && p_info[gotoid][pWanted] > 0) return GRESKA(playerid, "Ne mozete se portati do igraca koji ima wl!");
else if(JokTo[gotoid] == 1) return true;
else if(IsPlayerInWater(gotoid) && p_info[playerid][pABS] < 6) return GRESKA(playerid, "U vodi je!");
else if(WARPInfo[gotoid][warID] != -1) return GRESKA(playerid, "Ne mozes do gradjanina koji je u waru.");
else if(StreljanaP[gotoid] > 0) return GRESKA(playerid, "U streljani je!");
else if(WARPInfo[playerid][warID] != -1) return GRESKA(playerid, "Ne mozes to.");
else if(Tie[playerid] > 0) return GRESKA(playerid, "Zavezan si, ne mozes to!");
else if(playerid == gotoid) return GRESKA(playerid, "Ne mozete se portati do samog sebe !");
else if(FZIgrac[playerid] > 0) return GRESKA(playerid, "U freezoni si!");
else if(FZIgrac[gotoid] > 0 && p_info[playerid][pABS] < 6) return GRESKA(playerid, "Igrac je u freezoni!");
else if(p_info[playerid][pJailed] > 0) return GRESKA(playerid, "Ne mozes to, zatvoren si.");
else
{
    if(p_info[playerid][pWanted] > 0) return GRESKA(playerid, "Ne mozes to, trazen si.");
    if(ePresao[playerid] > 0) return GRESKA(playerid, "Ne mozes to, na eventu si.");
    if(Zavezan[playerid] > 0 || Tazovan[playerid] > 0) return GRESKA(playerid, "Ne mozes to!");
if(Zavezan[gotoid] > 0 || Tazovan[gotoid] > 0) return GRESKA(playerid, "Ne mozes do njega!");
    if(ePresao[gotoid] > 0) return GRESKA(playerid, "Ne mozes to, taj gradjanin je na eventu.");
    if(p_info[gotoid][pJailed] > 0) return GRESKA(playerid, "Ne mozes to, taj gradjanin je zatvoren.");
    if((PolicajacNaDuznosti[gotoid] == 1) && p_info[playerid][pABS] < 1 && p_info[playerid][pSupporter] < 3) return GRESKA(playerid, "Na duznosti je kao policajac!");
    if((p_info[gotoid][pLeader] == 1 || p_info[gotoid][pLeader] == 2 || p_info[gotoid][pLeader] == 3) && p_info[playerid][pABS] < 1 && p_info[playerid][pSupporter] < 3) return GRESKA(playerid, "Ne mozes do nje/ga, on/a je lider pd/int/sp!");
    if(p_info[playerid][pABS] == 0)
    {
        if(UsaoInt[gotoid] == 1) return GRESKA(playerid, "On/a je u enterijeru (setovana varijabla).");
    }
    if(MehDuty[playerid] > 0 || TaxiDuty[playerid] > 0)
{
    if(p_info[playerid][pABS] < 6)
{
GRESKA(playerid, "Ne mozes to, na duznosti si kao mehanicar ili taksista!");
return true;
}
}
    if(PizzaD[playerid] > 0 || AtmD[playerid] != 9999 || KomaracP[playerid] > 0 || KosacP[playerid] > 0 || RibarRadi[playerid] > 0 || RaznPosao[playerid] > 0 || BusRadi[playerid] > 0 || SvercMafija[playerid] > 0 || DostavljaCement[playerid] > 0 || PirRadi[playerid] > 0 || ADRadi[playerid] > 0 || TramvRadi[playerid] > 0 ||
ElekRadi[playerid] > 0 || PoljoprivrednikRadi[playerid] > 0 || RudKopa[playerid] > 0 || KamRadi[playerid] > 0 || Kamion[playerid] > 0 || Smecari[playerid] > 0 || PilotRadi[playerid] > 0 || CistiS[playerid] > 0 || Lovi[playerid] > 0 || KosacCP[playerid] > 0)
{
if(p_info[playerid][pABS] < 6) // znaci sere mi se od skripte
{
GRESKA(playerid, "Pokrenut ti je posao, ne mozes to! (/stopposao)");
return true;
}
}
GetPlayerPos(gotoid, X_C, Y_C, Z_C);
if(GetPlayerState(playerid) == 2)
{
new voziloid = GetPlayerVehicleID(playerid);
lz_SetVehiclePos(voziloid, X_C, Y_C+4, Z_C);
SetVehicleVirtualWorld(voziloid, GetPlayerVirtualWorld(gotoid));
if(UsaoInt[gotoid] == 1) { UsaoInt[playerid] = 1; }
else if(UsaoInt[gotoid] == 0) { UsaoInt[playerid] = 0; }
}
else
{
lz_SetPlayerPos(playerid,X_C, Y_C+2, Z_C);
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(gotoid));
SetPlayerInterior(playerid, GetPlayerInterior(gotoid));
if(UsaoInt[gotoid] == 1) { UsaoInt[playerid] = 1; }
else if(UsaoInt[gotoid] == 0) { UsaoInt[playerid] = 0; }
}
if(SupporterDuty[playerid] == 1)
{
    new krkic[200];
    format(krkic,200,"{FBE204}[TP]: Supporter (ON-DUTY) %s se teleportovao do %s!",ImeIgraca(playerid),ImeIgraca(gotoid));
    SMMSG(-1,krkic);
}
SCM(playerid, SIVA, "{FBE204}* Teleportovani ste!");
SCMF(gotoid, SIVA, "{FBE204}* %s se teleportovao do tebe.", ImeIgraca(playerid));
TPTime[playerid] = 1;
SetTimerEx("TPOff", 20000, false, "i", playerid); Port(playerid);
}
return true;
}
Scripter - Ventura Project
Ventura Project IP: 91.134.193.97:7790

[pawn]CMD:goto(playerid,params[])
{
   if(PlayerData[playerid][Ulogovan] < 1) return SCM(playerid, CRVENA,"Morate biti ulogovani da bi ste koristili ovu komandu");
   if(PlayerData[playerid][Asistent] >= 1 || PlayerData[playerid][Administrator] >= 1)
   {
       new targetid;
       new txt[100];
        new Float:Poz[3];
       if(targetid == IPI) return SCM(playerid, CRVENA,"Pogresan ID!");
       if(targetid == playerid) return SCM(playerid, CRVENA,"Nemozes se portati do samog sebe!");
      if(sscanf(params,"u",targetid)) return SCM(playerid, ZUTA,"KORISTI:/goto [ID/Deo imena]");
      GetPlayerName(playerid, Nam, MAX_PLAYER_NAME);
      GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
      format(txt,sizeof(txt),"Administrator %s se teleportovao do vas!",Nam);
      SCM(targetid, ZUTA,txt);

      format(txt,sizeof(txt),"Teleportovao si se do %s!",pName);
      SCM(playerid, ZUTA,txt);
      
      GetPlayerPos(targetid, Poz[0], Poz[1], Poz[2]);
      SetPlayerPos(playerid, Poz[0]+5, Poz[1]+5, Poz[2]);
      SetPlayerInterior(playerid, GetPlayerInterior(targetid));
      SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(targetid));
   }
   else
   {
       SCM(playerid, CRVENA,"Moras biti AS | A kako bi koristio ovu komandu");
   }
   return 1;
}[/pawn]

Eve tvoje komande moralo bi radit sad :D


[pawn]La vita E bella [/pawn]

Ne mozes proveravati da li je igrac online itd pre sscanfa jet ti je targetid po defaultu uvek nula
[pawn]CMD:goto(playerid,params[])
{
   if(PlayerData[playerid][Ulogovan] < 1) return SCM(playerid, CRVENA,"Morate biti ulogovani da bi ste koristili ovu komandu");
   if(PlayerData[playerid][Asistent] >= 1 || PlayerData[playerid][Administrator] >= 1)
   {
       new targetid;
       new txt[100];
        new Float:X;
       new Float:Y;
       new Float:Z;
       new Float:A;
      if(sscanf(params,"i",targetid)) return SCM(playerid, ZUTA,"KORISTI:/goto [ID/Deo imena]");
                if(!IsPlayerConnected(targetid)) return SCM(playerid, CRVENA,"Pogresan ID!");
               if(targetid == playerid) return SCM(playerid, CRVENA,"Nemozes se portati do samog sebe!");
      GetPlayerName(playerid, Nam, MAX_PLAYER_NAME);
      GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
      format(txt,sizeof(txt),"Administrator %s se teleportovao do vas!",Nam);
      SCM(targetid, ZUTA,txt);

      format(txt,sizeof(txt),"Teleportovao si se do %s!",Nam);
      SCM(playerid, ZUTA,txt);
      GetPlayerPos(targetid, X,Y,Z);
       GetPlayerFacingAngle(targetid, A);
       SetPlayerPos(playerid, X+2,Y+1.5,Z+0.5);
       SetPlayerFacingAngle(playerid, A);
   }
   else
   {
       SCM(playerid, CRVENA,"Moras biti AS | A kako bi koristio ovu komandu");
   }
   return 1;
}[/pawn]

Citat: \nLucius poslato Februar 18, 2018, 23:12:32 POSLE PODNE
Ne mozes proveravati da li je igrac online itd pre sscanfa jet ti je targetid po defaultu uvek nula
[pawn]CMD:goto(playerid,params[])
{
   if(PlayerData[playerid][Ulogovan] < 1) return SCM(playerid, CRVENA,"Morate biti ulogovani da bi ste koristili ovu komandu");
   if(PlayerData[playerid][Asistent] >= 1 || PlayerData[playerid][Administrator] >= 1)
   {
       new targetid;
       new txt[100];
        new Float:X;
       new Float:Y;
       new Float:Z;
       new Float:A;
      if(sscanf(params,"i",targetid)) return SCM(playerid, ZUTA,"KORISTI:/goto [ID/Deo imena]");
                if(!IsPlayerConnected(targetid)) return SCM(playerid, CRVENA,"Pogresan ID!");
               if(targetid == playerid) return SCM(playerid, CRVENA,"Nemozes se portati do samog sebe!");
      GetPlayerName(playerid, Nam, MAX_PLAYER_NAME);
      GetPlayerName(targetid, pName, MAX_PLAYER_NAME);
      format(txt,sizeof(txt),"Administrator %s se teleportovao do vas!",Nam);
      SCM(targetid, ZUTA,txt);

      format(txt,sizeof(txt),"Teleportovao si se do %s!",Nam);
      SCM(playerid, ZUTA,txt);
      GetPlayerPos(targetid, X,Y,Z);
       GetPlayerFacingAngle(targetid, A);
       SetPlayerPos(playerid, X+2,Y+1.5,Z+0.5);
       SetPlayerFacingAngle(playerid, A);
   }
   else
   {
       SCM(playerid, CRVENA,"Moras biti AS | A kako bi koristio ovu komandu");
   }
   return 1;
}[/pawn]
;)