SA-MP Forums Archive
VIP SYSTEM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: VIP SYSTEM (/showthread.php?tid=280960)



VIP SYSTEM - [LHT]Bally - 03.09.2011

anyone have any knowledge on what vip system works with ladmin, because all the ones that i have used always makes ladmin , not let players log in etc.


Re: VIP SYSTEM - Improvement™ - 03.09.2011

Why not just make your own VIP System, trust me it isn't that hard. If you would like to then I (or others) could perhaps explain you how it could work.


Re: VIP SYSTEM - [LHT]Bally - 03.09.2011

yes i would like to make my own but if you look i failed at making a toll script so i doubt a vip system would go much better tbh


Re: VIP SYSTEM - BlackWolf120 - 03.09.2011

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;
}