30.12.2015, 13:10
pawn Code:
CMD:freevip(playerid, params[])
{
new playername[64];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if(vip[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "Error: You are VIP already");
dini_IntSet(AddDirFile(dir_userfiles, playername), "Viplevel", 1);
vip[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "Enjoy your free VIP USE /skin for vip commands");
return 1;
}
Then When player logged in server
vipmember[playerid] = dini_Int(AddDirFile(dir_userfiles, playername), "Viplevel");