VIP Commands help
#1

Hello guys,
I'm still beginner at scripting and I wanted to ask you,
How can I add/make VIP Commands to LuxAdmin system?
There are 3 VIP levels, But none of them got any cmds?
Also I would like to add more levels.
Can you please help?
Thank you in advanced.
Joker.
Reply
#2

i need too vips commands, if anyone can do plz give me too download link, Thanks
Reply
#3

if(IsPlayerVipType(playerid,type) )

ex if(! IsPlayerVipType(playerid,1) ) return 0;
Reply
#4

i need some cmds for vip system please
Reply
#5

and me i want some commands plz
Reply
#6

create it then
ex;
HITMAN SKILL for VIP;
/mycar - private car
/myhouse - tele u to your house
/vchat [Message]
etc..
Reply
#7

Quote:
Originally Posted by NuLIO
Посмотреть сообщение
i need some cmds for vip system please
Quote:
Originally Posted by Scorpion Yemen
Посмотреть сообщение
and me i want some commands plz
Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
create it then
ex;
HITMAN SKILL for VIP;
/mycar - private car
/myhouse - tele u to your house
/vchat [Message]
etc..
Wth Guys,?
You just spoiled my topic. ._.
and Devil if ur smart create it then.
I don't know how to create cmds for VIP's.
I'm still new.
Reply
#8

-,-
pawn Код:
#include a_samp
#include zcmd

enum pInfo
{
    pVIP
}
new PlayerInfo[MAX_PLAYERS][pInfo];

CMD:vhitman(playerid, params[])
{
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
    }
    else
    {
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,0);
    }
    return 1;
}

CMD:myhouse(playerid, params[])
{
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        SetPlayerPos(playerid, Float:x, Float:y, Float:z);
    }
    return 1;
}

CMD:vchat(playerid, params[])
{
    new string[777], pName[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1)
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "{00FF00}[VIP]{FFFFFF}%s:{FFFF00}%s", pName, params);
            SendClientMessageToAll(-1, string);
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not VIP member!");
    }
    return 1;
}
Reply
#9

add /vheal , /varmour etc. etc. what you use? zcmd , dcmd etc.. ?
Reply
#10

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
-,-
pawn Код:
#include a_samp
#include zcmd

enum pInfo
{
    pVIP
}
new PlayerInfo[MAX_PLAYERS][pInfo];

CMD:vhitman(playerid, params[])
{
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
    }
    else
    {
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,0);
        SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,0);
    }
    return 1;
}

CMD:myhouse(playerid, params[])
{
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        SetPlayerPos(playerid, Float:x, Float:y, Float:z);
    }
    return 1;
}

CMD:vchat(playerid, params[])
{
    new string[777], pName[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pVIP] >= 1)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1)
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "{00FF00}[VIP]{FFFFFF}%s:{FFFF00}%s", pName, params);
            SendClientMessageToAll(-1, string);
        }
    }
    else
    {
        SendClientMessage(playerid, -1, "You are not VIP member!");
    }
    return 1;
}
Oh wtf?
hehe thanks for helping :P.
But still more xD.
ty
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)