weapon pickup not showing but is there.
#1

Hello samp, Im new here and will probally have some noob questions,
I have been reading this forum for a few days now and have not crossed this problem yet.
Sorry if this has been addressed elsewhere


The armor and health work great just not the shot gun.
the problem is when I place a weapon pickup the item just dont show.
When I go to where it should be it gives me the weapon.
here is my script


pawn Код:
#define FILTERSCRIPT
#include <a_samp>

new PICKUP_ARMOR;
new PICKUP_HEALTH;
new PICKUP_SHOTGUN;

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" PickUps Loaded");
    print("--------------------------------------\n");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnGameModeInit()
{  
    PICKUP_ARMOR = CreatePickup(1242, 2, 2471.8474,-1712.0262,13.5087, -1);// armor.
    PICKUP_HEALTH = CreatePickup(1240, 2, 2468.9707,-1711.3811,13.5008, -1);// health
    PICKUP_SHOTGUN = CreatePickup(27, 2, 2481.2029,-1703.9849,13.5285, -1);//  SHOTGUN
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PICKUP_HEALTH)
    {
        return 1;
    }

    if(pickupid == PICKUP_ARMOR)
    {
        return 1;
    }
    if(pickupid == PICKUP_SHOTGUN)
    {
        GameTextForPlayer(playerid, "~w~You Picked up the ShotGun", 5000, 5);
        GivePlayerWeapon(playerid,27,500);
        return 1;
    }
    return 1;
}

thanks
Reply


Messages In This Thread
weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:08
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 15:15
Re: weapon pickup not showing but is there. - by niels44 - 05.02.2012, 15:20
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 15:21
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:23
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 15:47
Re: weapon pickup not showing but is there. - by Twisted_Insane - 05.02.2012, 15:53
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 16:08
Re: weapon pickup not showing but is there. - by Finn - 05.02.2012, 16:10
Re: weapon pickup not showing but is there. - by Madd Kat - 05.02.2012, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)