Problem(error/warning): imam vip sistem i imam komandu /vgoto e sad, hocu da stavim da vip ne moze da se porta do admina
Deo skripte: [pawn]YCMD:vgoto(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"BB: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][pVip] >= 1)
{
if(!sscanf(params, "u", giveplayerid))
{
if(!IsPlayerConnected(giveplayerid)) return SCM(playerid, -1, ""CRVENA"[BB: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"[BB:RP] "BELA"Teleportovao si se do igraca %s.",GetName(giveplayerid));
SCM(playerid, -1, string);
format(string, sizeof(string),""CRVENA"[BB:RP] "BELA"Vip %s se teleportovao do tebe.",GetName(playerid));
SCM(giveplayerid, -1, string);
}
else SCM(playerid, -1,""CRVENA"BB:RP Pomoc | "BELA"/goto [ID/Nick]");
}
else SCM(playerid, -1,""CRVENA"[BB:RP] "BELA"Samo Vipovi!");
return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): /
Slika/video ingame problema(obavezno ako je ingame problem): /
Dodaj ovo negdje tu u komandi
[pawn]if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pAdmin] >= 1) return SCM(playerid,-1,"SA | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");
if( PlayerInfo[playerid][pVip] >= 1 && PlayerInfo[giveplayerid][pGM] >= 1) return SCM(playerid,-1,"SA | "SPLAVA"Ne mozete se portati do igraca koji je jaci od vas!");[/pawn]
Hvala ;D