[Tutorial] Create a pickup
#3

Why not just:
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == ls)
    {
        GivePlayerMoney(playerid, 150000);
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100);
    }
    return 1;
}
instead of checking if the pickupid is ls three times?
Reply


Messages In This Thread
Create a pickup - by 1Geek - 14.08.2013, 09:56
Re: Create a pickup - by Sawalha - 07.09.2013, 08:26
Re: Create a pickup - by Konstantinos - 07.09.2013, 09:33
Re : Re: Create a pickup - by 1Geek - 08.09.2013, 08:32

Forum Jump:


Users browsing this thread: 1 Guest(s)