[Tutorial] Adding Pickups & More
#10

Quote:
Originally Posted by Huxley
Посмотреть сообщение
@ Clive,thanks for that
@ Hoss,if you want to make 2 pickups,you need to make 2 Scripts,compile them and put in filterscript folder.Good luck!
You're Welcome.
Want to add more Pickups?
Check this:
pawn Код:
#include <a_samp>

//top
new pickup1;
new pickup2;

public OnGameModeInit() //or on filterscriptinit
{
    pickup1 = CreatePickup(1239, 23, x,y,z);
    pickup2 = CreatePickup(1239, 23, x,y,z);
    return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickup1)
    {
        GameTextForPlayer(playerid, "pickup 1!",2000,5);
        return 1;
    }
    if(pickupid == pickup2)
    {
        GameTextForPlayer(playerid, "pickup 2!",2000,5);
        return 1;
    }
    return 1;
}
Btw nice TUT.
Reply


Messages In This Thread
Adding Pickups & More - by XoSarahMoX - 26.11.2010, 03:08
Re: Adding Pickups & More - by Ruffles. - 26.11.2010, 03:34
Re: Adding Pickups & More - by XoSarahMoX - 26.11.2010, 03:35
Re: Adding Pickups & More - by Buzzbomb - 26.11.2010, 03:55
Re: Adding Pickups & More - by XoSarahMoX - 26.11.2010, 03:59
Re: Adding Pickups & More - by Huxley - 19.12.2010, 06:23
Re: Adding Pickups & More - by HyperZ - 19.12.2010, 06:27
Re: Adding Pickups & More - by [Lsrcr]Hoss - 19.12.2010, 09:02
Re: Adding Pickups & More - by Huxley - 19.12.2010, 10:33
Re: Adding Pickups & More - by HyperZ - 19.12.2010, 12:22

Forum Jump:


Users browsing this thread: 2 Guest(s)