23.11.2017, 07:06
not a expert
make sure there's already a pickup called 'health_100' or what ever
public OnFilterScriptInit() OR public OnGameModeInit()
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == health_100)
{
SetPlayerHealth(playerid, 100);
}
return 1;
}
PHP код:
new health_100;
PHP код:
health_100 = CreatePickup(1240, 2, 0.0, 0.0, 0.0); //replace coordinates