PDA

View Full Version : VIP SYSTEM


[LHT]Bally
03/09/2011, 05:59 PM
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.

Improvement™
03/09/2011, 06:01 PM
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.

[LHT]Bally
03/09/2011, 06:17 PM
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

BlackWolf120
03/09/2011, 06:42 PM
its really easy:


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