SA-MP Forums Archive
[QUESTION] Levels - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [QUESTION] Levels (/showthread.php?tid=270140)



[QUESTION] Levels - Crusher_Men - 19.07.2011

Im trying to create a V.I.P FS with levels like admin..
And comands.. Like: /veh [vehicle] [color1] [color 2] If V.I.P level < 5
With 10 rank V.I.P..
And when someone tipes /Vip it apears :

-----------V.I.P's--------------
[id]--------------Rank: [x]
[id]--------------Rank: [x]


So basic it's a Admin FS but for VIP's where they can creat some cars and have some special permissons..

But how can I do it? What do I need and How to use it? The rest I can make..


Re: [QUESTION] Levels - ћNJ - 19.07.2011

Isn't it same as for admins? Just change from Info[playerid][Admin] to Info[playerid][VIP] and add new file field where you can save their vip level.


Re: [QUESTION] Levels - Crusher_Men - 19.07.2011

And delete some cmds like /kick and /ban... deam! why didn't i think in that??

And do u know how to take some pickups out of the game? they ain't in the FS's... when I enter the Mad Dogg Mansion in LV (GarHouse) I exit in LS...

@Edit
I want to get this code:

pawn Код:
//VIP ONLINE CMD
CMD:vips(playerid,params[])
{
    new string[256];
    new iname[MAX_PLAYER_NAME], count=0;
    SendClientMessage(playerid, color, "VIPґs");
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][VIP] == 1)
        {
            GetPlayerName(i, iname, sizeof(iname));
            format(string, sizeof(string), "[%i]%s  Level:%i",playerid, iname, GetPlayerScore(i));
            SendClientMessage(playerid, color, string);
            count++;
        }
    }
    if(count==0) SendClientMessage(playerid, color, "Sem Players na Rcon");
    return 1;
}
On This:

pawn Код:
dcmd_admins(playerid,params[])
{
    #pragma unused params
    new count=0,string[128],rank[128];
    SendClientMessage(playerid, LIGHTBLUE, "_________________|Admins Online|_________________");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && IsPlayerHAdmin(i))
        {
            if(!strcmp(PlayerIp(i),"127.0.0.1",true)) rank = "Server Owner";
            else
            switch(GetInfo(i,"AdminLevel"))
            {
                case 1: rank = "Low Moderator";
                case 2: rank = "Normal Moderator";
                case 3: rank = "Big Moderator";
                case 4: rank = "Hero moderator";
                case 5: rank = "Low Administrator";
                case 6: rank = "Normal Administrator";
                case 7: rank = "Big Administrator";
                case 8: rank = "Hero Administrator";
                case 9: rank = "High Administrator";
                case 10: rank = "Highest Administrator";
            }
            format(string, 128, "Admin: %s  Level: %d  Rank: %s", AdminName(i),GetInfo(i,"AdminLevel"),rank);
            SendClientMessage(playerid, LIGHTBLUE, string);
            count++;
        }
    }
    if (count == 0) SendClientMessage(playerid,LIGHTBLUE,"There Are no Admins Online");
    return SendClientMessage(playerid, LIGHTBLUE, "ЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇЇ");
}