Deadly arrow
#4

pawn Код:
new cash;
 
public OnGameModeInit()
{
    cash = CreatePickup(1274, 2, 0.0, 0.0, 9.0);
    return 1;
}
 
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == cash) GivePlayerMoney(playerid,10000);
    return 1;
}
So I do it like this?
pawn Код:
new arrow;
 
public OnGameModeInit()
{
    arrow = CreatePickup(dontremember, coords, 9.0); //whats that 9.0? The type of pickup?
    return 1;
}
 
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == arrow) SetPlayerHealth(playerid,0);
    return 1;
}
Reply


Messages In This Thread
Deadly arrow - by ColdIce - 27.07.2011, 13:05
Re: Deadly arrow - by DeathOnaStick - 27.07.2011, 13:08
Re: Deadly arrow - by ColdIce - 27.07.2011, 13:12
Re: Deadly arrow - by ColdIce - 27.07.2011, 13:20
AW: Deadly arrow - by Nero_3D - 27.07.2011, 13:26
Re: Deadly arrow - by Rolyy - 27.07.2011, 13:29
Re: Deadly arrow - by ColdIce - 27.07.2011, 13:33
Re: Deadly arrow - by ColdIce - 27.07.2011, 15:00
Re: Deadly arrow - by ColdIce - 27.07.2011, 17:16
Re: Deadly arrow - by Jay. - 27.07.2011, 17:20

Forum Jump:


Users browsing this thread: 4 Guest(s)