Pickup with weapon shop [HELP]
#4

PHP код:
#include <a_samp>
//:...................
#define DIALOG_WEAPONS 3
//:...................
new weapon;
//:...................
public OnGameModeInit()
{
    
weapon CreatePickup(127420.00.09.0);//Here goes the coordinates
    
return 1;
}
//:...................//:...................
//:...................
//:...................
//:...................
//:...................
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == weapon)
     {
     
ShowPlayerDialog(playeridDIALOG_WEAPONSDIALOG_STYLE_LIST"Weapons""Deagle\nAK47\nShotgspa""Buy""Quit");
    return 
1;
}
//:...................
//:...................
//:...................
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_WEAPONS)
    {
        if(
response
        {
            
            if(
listitem == 0
            {
                
GivePlayerWeapon(playerid29114);
            }
            if(
listitem == 1
            {
                
GivePlayerWeapon(playerid30120);
            }
            if(
listitem == 2)
            {
                
GivePlayerWeapon(playerid27280);
            }
        }
        return 
1
    }
    return 
0

Reply


Messages In This Thread
Pickup with weapon shop [HELP] - by Pokiri_Boii - 24.10.2012, 18:45
Re: Pickup with weapon shop [HELP] - by RedJohn - 24.10.2012, 18:51
Re: Pickup with weapon shop [HELP] - by Pokiri_Boii - 24.10.2012, 19:04
Re: Pickup with weapon shop [HELP] - by ThePhenix - 24.10.2012, 19:12
Re: Pickup with weapon shop [HELP] - by Pokiri_Boii - 25.10.2012, 06:55
Re: Pickup with weapon shop [HELP] - by -=Dar[K]Lord=- - 25.10.2012, 10:31
Re: Pickup with weapon shop [HELP] - by Pokiri_Boii - 25.10.2012, 13:02
Re: Pickup with weapon shop [HELP] - by -=Dar[K]Lord=- - 27.10.2012, 05:33

Forum Jump:


Users browsing this thread: 4 Guest(s)