how i make vip system?
#8

Quote:
Originally Posted by Youice
Посмотреть сообщение
here is the cmd::

Код:
CMD:setvip(playerid, params[])
{
	for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
	{
		if(IsPlayerAdmin(i)) //Only Rcon Admin
		{
		    if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE:: /setvip [playername/id]");		    
		    new string[987], n[MAX_PLAYER_NAME], targerID;
		    GetPlayerName(playerid, n, sizeof(n));
		    new rank = 1>5;
		    format(string, sizeof(string), " Admin %s has set you vip level %s", n, rank);
                    SetPlayerTeam(playerid, VIP);
                    PlayerInfo[playerid][pVip] = rank; 
		    SendClientMessage(targerID, -1, string);
		    SendClientMessage(i, -1,string);
		    return 1;
		}
		else return SendClientMessage(playerid, -1, "You are not authorized to use that command!!");
	}
	return 1;
	
}
Note: Add
Код:
#define VIP 999
and in pInfo add the "pVip"
thanks but how it save into dudb file and how i make other commands like /vipclub for vip only and if regular player want to go to /vipclub , it will say "you are no vip member!" i think i need .inc file.
Reply


Messages In This Thread
how i make vip system? - by TheDiscussionCafe - 30.04.2012, 04:32
Respuesta: how i make vip system? - by Chris1337 - 30.04.2012, 04:57
Re: how i make vip system? - by Matt_Revolo - 30.04.2012, 05:00
Re: how i make vip system? - by ReneG - 30.04.2012, 05:16
Re: how i make vip system? - by TheDiscussionCafe - 30.04.2012, 21:19
Re: how i make vip system? - by Youice - 30.04.2012, 21:24
Re: how i make vip system? - by Youice - 30.04.2012, 21:38
Re: how i make vip system? - by TheDiscussionCafe - 30.04.2012, 21:53
Re: how i make vip system? - by TheDiscussionCafe - 01.05.2012, 13:33
Re: how i make vip system? - by Pinguinn - 01.05.2012, 13:41

Forum Jump:


Users browsing this thread: 3 Guest(s)