19.12.2010, 12:22
(
Последний раз редактировалось HyperZ; 19.12.2010 в 16:00.
)
Quote:
@ 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! |
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;
}