27.10.2010, 16:12
First:
Add this at bottom of your code:
Hope it works.
pawn Код:
new Vips[2][MAX_PLAYER_NAME] =
{
"Username1",
"Username2"
};
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.
}

