Pickup Problem
#9

I tried everything you guys suggested.

1. Made onplayerpickuppickup not return 1;

2. Made else if in the code.

3. Put 1, and 2 together


Didn't work!....
pawn Код:
new FightClubHealth;
new FightClubArmour;
new FightClubTec9;
new FightClubSawnoff;
pawn Код:
FightClubHealth = CreatePickup(1240, 2, -1038.4342,1025.6862,1343.2644, -1);
FightClubArmour = CreatePickup(1242, 2, -1067.6223,1088.3184,1346.5283, -1);
FightClubTec9 = CreatePickup(372, 2, -1018.3204,1063.2198,1343.0958, -1);
FightClubSawnoff = CreatePickup(350, 2, -1044.2113,1094.0320,1346.4677, -1);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == FightClubHealth)
    {
        SetPlayerHealth(playerid,100.0);
    }
    else if(pickupid == FightClubArmour)
    {
        SetPlayerArmour(playerid,100.0);
    }
    else if(pickupid == FightClubTec9)
    {
        GivePlayerWeapon(playerid,32, 960);
    }
    else if(pickupid == FightClubSawnoff)
    {
        GivePlayerWeapon(playerid,26, 202);
    }
}

To put things in pawn just use pawn tags [pawn.][/pawn] Put your code in the middle of that. (Without the . beside the first pawn
Reply


Messages In This Thread
Pickup Problem - by MWF2 - 09.07.2010, 16:07
Re: Pickup Problem - by dice7 - 09.07.2010, 16:15
Re: Pickup Problem - by MWF2 - 09.07.2010, 18:44
Re: Pickup Problem - by aNdReSk - 09.07.2010, 18:47
Re: Pickup Problem - by DJBluefader - 09.07.2010, 18:49
Re: Pickup Problem - by Kar - 09.07.2010, 19:11
Re: Pickup Problem - by MWF2 - 09.07.2010, 19:12
Re: Pickup Problem - by Hiddos - 09.07.2010, 19:18
Re: Pickup Problem - by MWF2 - 09.07.2010, 19:21
Re: Pickup Problem - by GaGlets(R) - 09.07.2010, 19:24

Forum Jump:


Users browsing this thread: 4 Guest(s)