VIP System!
#1

I need a VIP system for these commands

pawn Код:
dcmd_level1(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] > 0)
    {
        SendClientMessage(playerid,blue,"  ---=Level 1 Admin Commands =---");
        SendClientMessage(playerid,lightblue,"getinfo, weaps, vr, repair, ltune, lhy, lnos, lp, asay, ping, lslowmo, ltc,");
        SendClientMessage(playerid,lightblue,"morning, adminarea, reports, richlist, miniguns, saveplacae, gotoplace,");
        SendClientMessage(playerid,lightblue,"saveskin, useskin, dontuseskin, setmytime, ip, lconfig.");
    }
    return 1;
}
a example of one of the commands


dcmd_vr(playerid,params[]) {
#pragma unused params
if(PlayerInfo[playerid][VIPl] >= 1) { what do I have to put at the top of the script for this to work?
if (IsPlayerInAnyVehicle(playerid)) {
SetVehicleHealth(GetPlayerVehicleID(playerid),1250 .0);
return SendClientMessage(playerid,blue,"Vehicle Fixed");
} else return SendClientMessage(playerid,red,"Error: You are not in a vehicle");
} else return SendClientMessage(playerid,red,"ERROR: You are not a VIP");
}

and need some help with VIP chat.

public OnPlayerText(playerid, text[])
{
if(text[0] == '#' && PlayerInfo[playerid][VIP] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"VIP Chat: %s: %s",string,text[1]); MessageToVIP(green,string);
return 0;
}

what forwards do I need for this stuff to work.


OR even better is there a VIP system to download with cool unlockables
Reply
#2

you using ladmin?
Reply
#3

Quote:
Originally Posted by brett7
you using ladmin?
ya Im basically trying to change level 1 to a VIP system say if you play for 100 hours or something you become a VIP
Reply
#4

you could do it manually: change 5 to 6, 4 to 5 etc.

then make level1 vip
Reply
#5

Quote:
Originally Posted by brett7
you could do it manually: change 5 to 6, 4 to 5 etc.

then make level1 vip
I was thinking of making a VIP chat and a /vip command so you see the names of the VIPS's cause I don't want them to seem like they are a admin only a VIP
Reply
#6

public OnPlayerText(playerid, text[])
{
if(text[0] == '!' && PlayerInfo[playerid][VIP] >= 1) {
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"VIP Chat: %s: %s",string,text[1]); MessageToVIP(green,string);
return 0;
}

then !vip chat!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)