[Pomoc]Pomoc oko komande

Započeo Stefan Ristic, Decembar 06, 2014, 22:46:29 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:EX:RP
Detaljan opis problema:Problem je kod komande za teleport tj. /goto.Problem je u tome da se admin level-a 1338 ne moze portati do admina level 7 "Ne mozete se portati do igraca koji je jaci od vas".Kako da editujem komandu da se GameMasteri i sve vrste admina mogu portati jednih do druge.Moze neka pomoc?
Dio skripte:YCMD:goto(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"EX:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[128], giveplayerid, giveplayer[MAX_PLAYER_NAME];
new Float:plx,Float:ply,Float:plz;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pPromoter] >= 1)
{
if(!sscanf(params, "u", giveplayerid))
{
    if(PlayerInfo[playerid][pPromoter] == 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji je jaci od vas!");
    if(PlayerInfo[playerid][pGM] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji je jaci od vas!");
    if(PlayerInfo[playerid][pAdmin] == 1 && PlayerInfo[giveplayerid][pAdmin] == 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji je jaci od vas!");
    if(PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji je jaci od vas!");
if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca jer imate trazeni level!");
if(PlayerInfo[giveplayerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji ima trazeni level!");
if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca jer ste zatvoreni!");
if(!IsPlayerConnected(giveplayerid)) return SCM(playerid, -1, ""CRVENA"[EX:RP] "SIVA"Pogresan ID!");
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),""CRVENA"[EX:RP] "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
SCM(playerid, -1, string);
format(string, sizeof(string),""CRVENA"[EX:RP] "BELA"Admin %s se teleportovao do tebe.",GetName(playerid));
SCM(giveplayerid, -1, string);
}
else SCM(playerid, -1,""CRVENA"EX:RP Pomoc | "BELA"/goto [ID/Nick]");
}
else SCM(playerid, -1,""CRVENA"[EX:RP] "BELA"Samo Admini & GameMasteri!");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):///

Evo probaj :
YCMD:goto(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"EX:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[128], giveplayerid, giveplayer[MAX_PLAYER_NAME];
new Float:plx,Float:ply,Float:plz;
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1 || PlayerInfo[playerid][pPromoter] >= 1)
{
if(!sscanf(params, "u", giveplayerid))
{
if(PlayerInfo[playerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca jer imate trazeni level!");
if(PlayerInfo[giveplayerid][pTrazeniLevel] >= 1) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca koji ima trazeni level!");
if(PlayerInfo[playerid][pZatvor] != 0) return SCM(playerid,-1,"EX:RP | "CRVENA"Ne mozete se portati do igraca jer ste zatvoreni!");
if(!IsPlayerConnected(giveplayerid)) return SCM(playerid, -1, ""CRVENA"[EX:RP] "SIVA"Pogresan ID!");
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),""CRVENA"[EX:RP] "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
SCM(playerid, -1, string);
format(string, sizeof(string),""CRVENA"[EX:RP] "BELA"Admin %s se teleportovao do tebe.",GetName(playerid));
SCM(giveplayerid, -1, string);
}
else SCM(playerid, -1,""CRVENA"EX:RP Pomoc | "BELA"/goto [ID/Nick]");
}
else SCM(playerid, -1,""CRVENA"[EX:RP] "BELA"Samo Admini & GameMasteri!");
return 1;
}