03.09.2011, 17:59
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.
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;
}