23.11.2017, 05:57
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { switch(pickupid) { case pickup_health: { SetPlayerHealth(playerid, 100); } return 1; } return 0; }
public OnPlayerPickUpPickup(playerid, pickupid) { switch(pickupid) { case pickup_health: { SetPlayerHealth(playerid, 100); } return 1; } return 0; }
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == health_100)
{
SetPlayerHealth(playerid, 100);
}
return 1;
}
new health_100;
health_100 = CreatePickup(1240, 2, 0.0, 0.0, 0.0); //replace coordinates
new health_100; public OnGameModeInit() { health_100=CreateDynamicPickup(1240,2,0,0,0,-1); } public OnPlayerPickUpDynamicPickup(playerid,pickupid) { if(pickupid==health_100) { SetPlayerHealth(playerid, 100); } return 1; }