VIP SYSTEM
#4

its really easy:

pawn Код:
new IsPlayerVip[MAX_PLAYERS];

//OnPlayerConnect
IsPlayerVip[playerid]=0;

So when a player is VIP he gets his variable set to 1.
So just check if a player is VIP and allow or fobid certain actions/cmds for them like:

//e.g. a cmd for VIP Shop
if (strcmp("/vipshop", cmdtext, true) == 0 || strcmp("/vs", cmdtext, true) == 0)
{

   if(Spieler[playerid][Vip] > 0)//if player is vip
   {

   //ur code...
   SendClientMessage(playerid, 0xAA3333AA, "{303030}You opened the {B87333}VIP shop.");

   }else return SendClientMessage(playerid, 0xAA3333AA, "{EE0000}You are not a VIP!");// if hes not vip he gets this message

return 1;
}
Reply


Messages In This Thread
VIP SYSTEM - by [LHT]Bally - 03.09.2011, 17:59
Re: VIP SYSTEM - by Improvement™ - 03.09.2011, 18:01
Re: VIP SYSTEM - by [LHT]Bally - 03.09.2011, 18:17
Re: VIP SYSTEM - by BlackWolf120 - 03.09.2011, 18:42

Forum Jump:


Users browsing this thread: 1 Guest(s)