IsPlayerVIP - 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: IsPlayerVIP (
/showthread.php?tid=508646)
IsPlayerVIP -
lonalovegood1 - 23.04.2014
I want to make something like if(IsPlayerVIP) {...}
how can i define IsPlayerVIP ?
with functions ? stocks ? What ?!
Re: IsPlayerVIP -
RowdyrideR - 23.04.2014
Код:
stock IsPlayerVIP(playerid,rang)
{
if(GetPVarInt(playerid,"VIP")>=rang)return 1;
return 0;
}
So now let's say you've got 3 Vip levels.
1) if player is level 1 or higher:
if(IsPlayerVIP(playerid,1))
2) if player is level 2 or higher:
if(IsPlayerVIP(playerid,2))
1) if player is level 3:
if(IsPlayerVIP(playerid,3))