VIP Commands help
#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


Messages In This Thread
VIP Commands help - by Majed - 29.07.2012, 11:54
Re: VIP Commands help - by Friend+ - 29.07.2012, 11:58
Re: VIP Commands help - by XStormiest - 29.07.2012, 12:06
Re: VIP Commands help - by NuLIO - 29.07.2012, 12:23
Re: VIP Commands help - by Scorpion Yemen - 29.07.2012, 12:27
Re: VIP Commands help - by Devilxz97 - 29.07.2012, 12:32
Re: VIP Commands help - by Majed - 29.07.2012, 12:57
Re: VIP Commands help - by Devilxz97 - 29.07.2012, 13:42
Re: VIP Commands help - by Pravin - 29.07.2012, 13:44
Re: VIP Commands help - by Majed - 29.07.2012, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)