SA-MP Forums Archive
LuxAdmin Vip Commands Needed. - 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)
+--- Thread: LuxAdmin Vip Commands Needed. (/showthread.php?tid=369796)



LuxAdmin Vip Commands Needed. - martin3644 - 18.08.2012

Hello, I'm new in scripting and I need a little bit help with my luxadmin vip system. All works but I have no idea how to script VIP commands, can enyone help?

I used search, but I find nothing.

Sorry for bad english.


Re: LuxAdmin Vip Commands Needed. - RanSEE - 18.08.2012

Quote:

All works but I have no idea how to script VIP commands, can enyone help?

Are you trying to edit LuxAdmin VIP Commands and failing, or you can't find them in the script ?


Re: LuxAdmin Vip Commands Needed. - martin3644 - 18.08.2012

Quote:
Originally Posted by RanSEE
Посмотреть сообщение
Are you trying to edit LuxAdmin VIP Commands and failing, or you can't find them in the script ?
I was trying but I always fail.


Re: LuxAdmin Vip Commands Needed. - RanSEE - 18.08.2012

We can help you only if you post whatever problems occurs ?
Errors etc?


Re: LuxAdmin Vip Commands Needed. - martin3644 - 18.08.2012

No Errors, nothing, I just need a PRO scripter who can script me some VIP commands.


Re: LuxAdmin Vip Commands Needed. - martin3644 - 20.08.2012

I can see, nobody wants to help me, to make some vip commands.


Re : LuxAdmin Vip Commands Needed. - DaTa[X] - 20.08.2012

#include <ladmin> // add tis in your game mode

Код:
dcmd_heal(playerid,params[])

  {
     
    #pragma unused params 
    if(IsPlayerVipType(playerid,2))
      {   
         SetPlayerHealth(playerid,100);
      }
 
    else 
         
           SendClientMessage(playerid,red,"ERROR: You need to be vip level (2) to use this command ");
           return 1;
}



Re: LuxAdmin Vip Commands Needed. - kbalor - 20.08.2012

For VIP Level 1 command

pawn Код:
dcmd_disarm(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 1 ||  AccInfo[playerid][pVip] >= 1)
    {
        if(!strlen(params)) return
        SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Usage: /disarm [PlayerID]") &&
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Function: Will disarm a specified player");
        new player1 = strval(params);
        new string[128];
        if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
        return SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}ERROR: You cannot use this command on this admin");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            SendCommandToAdmins(playerid,"Disarm");
            PlayerPlaySound(player1,1057,0.0,0.0,0.0);
            format(string, sizeof(string), "You have disarmed %s ", pName(player1));
            SendClientMessage(playerid,BlueMsg,string);
            ResetPlayerWeapons(player1);
            return PlayerPlaySound(player1,1057,0.0,0.0,0.0);
        }
        else return ErrorMessages(playerid, 2);
    }
    else return ErrorMessages(playerid, 1);
}
Код:
dcmd(disarm,6,cmdtext);



Re: LuxAdmin Vip Commands Needed. - martin3644 - 20.08.2012

Thank You, thats what I need. Thank You!