VIP CMDS
#1

Hello all,


I have a server but i dont have any vip cmds and I need a way of letting people get guns.


I was hoping to use /getvipgun then a list would come up like....


1. M4 2. Sniper Rifle 3. Tear Gas
4. Shotgun 5. MP5 6. Spas12 7.Sawn off 9. Deagle (and Infinite ammo)

---------------------------------------------------------------------------

The /getviparmor command,


All I would like is for when a player does /getviparmor (the VIP player must be in a vehicle if possible) It gives them full armour.

----------------------------------------------------------------------------

The /getviptoys command,

As it says every VIP can do /getviptoys then they bought a toys.





Many Thanks in Advance
Reply
#2

and ? plus remove your damm server ip
Reply
#3

On top
pawn Код:
#define DIALOG_VIPGUNS 5000
//idk if you have more dialogs, so I just put 5000
Made it with zcmd
pawn Код:
CMD:getviparmor(playerid,params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"You must be in a vehicle to use this command.");
SetPlayerArmour(playerid,100);
SendClientMessage(playerid,-1,"You have successfully refilled your armour.");
return 1;
}
pawn Код:
CMD:getvipgun(playerid,params[])
{
SendClientMessage(playerid,-1,"Please select the gun you'd like to spawn.");
ShowPlayerDialog(playerid,DIALOG_VIPGUNS,DIALOG_STYLE_LIST,"VIP Guns List","Desert Eagle\nSawn-Off shotgun\nCombat Shotgun\nNormal Shotgun\nMinigun","Select","Close"); //I made few guns, not all, you can add few more if you want.
return 1;
}
now go OnDialogResponse public
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
 if(dialogid == DIALOG_VIPGUNS)
    {
        if(response) // If they clicked 'Yes' or pressed enter
        {
            if(listitem == 0) //Desert Eagle
            {
             GivePlayerWeapon(playerid,24,100);
            }
            if(listitem == 1) //Sawn-Off shotgun
            {
             GivePlayerWeapon(playerid,26,100);
            }
            if(listitem == 2) //Combat Shotgun
            {
             GivePlayerWeapon(playerid,27,100);
            }
            if(listitem == 3) //Normal Shotgun
            {
             GivePlayerWeapon(playerid,25,100);
            }
            if(listitem == 4) //Minigun
            {
             GivePlayerWeapon(playerid,38,100);
            }
        }
        return 1;
    }
    return 0;
}
For the toys, I couldn't make it cauz it will take alot of time and it will require big system and etc so didn't make it
Reply
#4

Код:
gamemodes\FlakenFreeroam.pwn(1804) : error 001: expected token: ")", but found "-integer value-"
gamemodes\FlakenFreeroam.pwn(1804) : warning 215: expression has no effect
gamemodes\FlakenFreeroam.pwn(1804) : error 001: expected token: ";", but found ")"
gamemodes\FlakenFreeroam.pwn(1804) : error 029: invalid expression, assumed zero
gamemodes\FlakenFreeroam.pwn(1804) : fatal error 107: too many error messages on one line
hmm ??
Reply
#5

Show the error line
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)