SA-MP Forums Archive
Little help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Little help (/showthread.php?tid=197023)



Little help - ZamaXor - 07.12.2010

Help with this

All can use this:
pawn Код:
if(PlayerInfo[playerid][Level] >=1) return SendClientMessage(playerid, RED, "Only admins use this.");
Level 1 can't use this:
pawn Код:
if(PlayerInfo[playerid][Level] <=1) return SendClientMessage(playerid, RED, "Only admins use this.");
I need only so no admins cant use this thing. And level 1, 2, 3, 4, 5 can.


Re: Little help - armyoftwo - 07.12.2010

Quote:
Originally Posted by ZamaXor
Посмотреть сообщение
Help with this

All can use this:
pawn Код:
if(PlayerInfo[playerid][Level] >=1) return SendClientMessage(playerid, RED, "Only admins use this.");
Level 1 can't use this:
pawn Код:
if(PlayerInfo[playerid][Level] <=1) return SendClientMessage(playerid, RED, "Only admins use this.");
I need only so no admins cant use this thing. And level 1, 2, 3, 4, 5 can.
Код:
if(PlayerInfo[playerid][Level] == 0) return SendClientMessage(playerid, RED, "Only admins use this.");