VIP Check
#2

First:

pawn Код:
new Vips[2][MAX_PLAYER_NAME] =
{
    "Username1",
    "Username2"
};
Add this at bottom of your code:
pawn Код:
stock IsPlayerVIP(playerid)
{
    new PlName[MAX_PLAYER_NAME]; GetPlayerName(playerid, PlName, MAX_PLAYER_NAME);
    for(new i=0; i<sizeof(Vips); i++) if(!strcmp, PlName, Vips[i]) return 1;
    return 0;
}
pawn Код:
if(strcmp(what, "thgLLXT1", true, strlen(what)) == 0 && IsPlayerVIP(playerid))
            {
                //Here what you want to make if VIP logged in.
            }
Hope it works.
Reply


Messages In This Thread
How do i check this? - by corne - 27.10.2010, 15:31
Re: VIP Check - by Jeffry - 27.10.2010, 16:12
Re: VIP Check - by corne - 27.10.2010, 16:25
Re: VIP Check - by Jeffry - 27.10.2010, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)