Need help in /freevip
#9

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");
Reply


Messages In This Thread
Need help in /freevip - by Leopards - 29.12.2015, 18:36
Re: Need help in /freevip - by Leopards - 29.12.2015, 18:38
Re: Need help in /freevip - by Leopards - 29.12.2015, 19:38
Re: Need help in /freevip - by Tamy - 29.12.2015, 20:12
Re: Need help in /freevip - by Leopards - 29.12.2015, 20:53
Re: Need help in /freevip - by saffierr - 30.12.2015, 05:25
Re: Need help in /freevip - by Amunra - 30.12.2015, 08:53
Re: Need help in /freevip - by Leopards - 30.12.2015, 13:03
Re: Need help in /freevip - by IceBilizard - 30.12.2015, 13:10
Re: Need help in /freevip - by Leopards - 30.12.2015, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)