GetPVarInt problem - 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: GetPVarInt problem (
/showthread.php?tid=434273)
GetPVarInt problem -
[..MonTaNa..] - 01.05.2013
....
Re: GetPVarInt problem -
XStormiest - 01.05.2013
Just use to indentify if player is admin also
ex:
pawn Код:
if(GetPVarInt(pID, "Aduty") == 1 && IsAdmin[pID][Admin] < 1) return SendClientMessage(playerid, COLOR_RED, "You Cannot Expose Yourself To An Admin On Duty.");
that was just an example
Re: GetPVarInt problem -
stabker - 01.05.2013
Try it
pawn Код:
if(!GetPVarInt(playerid, "Aduty")) return SendClientMessage(playerid, COLOR_RED, "You Cannot Expose Yourself To An Admin On Duty.");