LuxAdmin Vip Commands Needed.
#1

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.
Reply
#2

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 ?
Reply
#3

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.
Reply
#4

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

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

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

#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;
}
Reply
#8

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);
Reply
#9

Thank You, thats what I need. Thank You!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)