VIP LOCKER HELP !
#1

Hello this is my already got code

PHP Code:
CMD:viplocker(playeridparams[]) 

    if(!
IsPlayerInRangeOfPoint(playerid3.01416.7363, -1680.076813.5469)) return SendClientMessage(playerid,-1"Error: You're not near the locker."); //seeing if a player is in range of x, y, z. If not, send the message. 
    
if(PlayerInfo[playerid][pDonator] > 1//Checking to see if their a vip. //VIP LOCKER credits to: rangerxll 
    

        
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"VIP Locker""VIP Heal\nVIP Armor\nVIP Weapons""Select""Cancel"); //showing the locker menu. 
    

    return 
1

PHP Code:
switch(dialogid)
{
    case 
1:
    {
        switch(
listitem):
        {
             case 
0//your first item reaction, so in your case, it'd be healing your player.
        
}
    }

PHP Code:
GivePlayerWeapon(playeridweaponidammo); 
I have all of that code but i don't know where to put it and i don't know how to put function on

like example if he/she choose VIP Heal he will be fully healed
in armor he/she will get full armor
and VIP weapons if he/she clicked that
another dialog box will be opened
and there is
SPAS-12
M4A1
Sniper
Sawn-Off Shotgun
and other VIP Guns
can someone help me here ? i'am willing to give you +rep

Can u help me

NOTE: i'am a new scripter and all my VIP's want a VIP locker please help me
Reply
#2

PHP Code:
if(dialogid == 1)
        {
            if(
response)
            {
                   if (
listitem == 1)
                {
                    if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 1)
                    {
                        if(
PlayerInfo[playerid][pRank] >= 1)
                        {
                                       
GivePlayerHeal(playerid100);
                            
OnSwatDuty[playerid] = 0;
                            
GetPlayerName(playeridsendernamesizeof(sendername));
                            
format(stringsizeof(string), "* %s has got full HP"sendername);
                            
ProxDetector(30.0playeridstringCOLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
                        }
                    }
                   } 
Reply
#3

@Clad where i will put it and fix it [pDonator]
Reply
#4

I gave my Dialog of Factions remove it and make it to pDonator
Reply
#5

Where i will put it in my GM ?
Reply
#6

Any place you want.
Reply
#7

Do you have in

PHP Code:
nVIP Armor\nVIP Weapons 
in VIP weapons it will show another dialog and if he choose 1 of guns he will have it ?
Reply
#8

Use the same as Heal, But in place of GivePlayerHeal make GivePlayerWeapon but change also listitem
Reply
#9

What is code in Armor ?
Reply
#10

GivePlayerArmor ?
Reply
#11

Ok i will try
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)