Link Filterscript with GameMode
#1

If I have a variable in a filterscript like VIP.
pawn Код:
Variables[playerid][VIP] = GetPlayerFileVar(playerid,"VIP");
How can I check if the player is a VIP in my gamemode? Wouldn't I need some sort of include like IsPlayerVIP?
Reply
#2

Click
Reply
#3

Fail for me

pawn Код:
if(Variables[playerid][VIP])
    {
        SetPlayerArmour(playerid,100);
    }
Код:
OSK-TDM.pwn(201) : error 017: undefined symbol "Variables"
OSK-TDM.pwn(201) : warning 215: expression has no effect
OSK-TDM.pwn(201) : error 001: expected token: ";", but found "]"
OSK-TDM.pwn(201) : error 029: invalid expression, assumed zero
OSK-TDM.pwn(201) : fatal error 107: too many error messages on one line
Reply
#4

He gave you PVar link. Read it.
What data you store in your Variables[playerid][VIP]?
Reply
#5

I don't know how I would use pVar to check if the player was a VIP or not. I want it to check if the player is a vip from the %s.ini files.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)