SA-MP Forums Archive
Admin And Level Color Help pls - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin And Level Color Help pls (/showthread.php?tid=598690)



Admin And Level Color Help pls - Tween73 - 15.01.2016

їYes or no?
Quote:

if(PlayerInfo[playerid][pAdmin] >= 1) && if(PlayerInfo[playerid][pLevel] >= 1)

Quote:

if(PlayerInfo[playerid][pAdmin] >= 1)
if(PlayerInfo[playerid][pLevel] >= 1)
Or
if(PlayerInfo[playerid][pAdmin] >= 1) && if(PlayerInfo[playerid][pLevel] >= 1)
{
SetPlayerColor(playerid,COLOR_RED);
return 1;
}

Quote:

if(PlayerInfo[playerid][pAdmin] >= 0)
if(PlayerInfo[playerid][pLevel] >= 0)
Or
if(PlayerInfo[playerid][pAdmin] >= 0) && if(PlayerInfo[playerid][pLevel] >= 0)
{
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
}




Re: Admin And Level Color Help pls - Crayder - 16.01.2016

if(PlayerInfo[playerid][pAdmin] >= 0 && PlayerInfo[playerid][pLevel] >= 0)


Re: Admin And Level Color Help pls - NoDi522 - 16.01.2016

PHP код:
if(PlayerInfo[playerid][pAdmin] >= && PlayerInfo[playerid][pLevel] >= 1)// In the same bracket... && Means 'and' || means 'or'.