09.07.2010, 19:24
Quote:
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 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 |
return with setting..
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == FightClubHealth)
{
return SetPlayerHealth(playerid,100.0);
}
if(pickupid == FightClubArmour)
{
return SetPlayerArmour(playerid,100.0);
}
if(pickupid == FightClubTec9)
{
return GivePlayerWeapon(playerid,32, 960);
}
if(pickupid == FightClubSawnoff)
{
return GivePlayerWeapon(playerid,26, 202);
}
}