08.08.2010, 23:43
Hi,
I'm wanting to spawn an object (health to be specific).
I want it to do this ideally:
I had a bash at it, but probably screwed it up lol
thanks
I'm wanting to spawn an object (health to be specific).
Quote:
|
Health ID: 1240 |
Код:
public OnGameModeInit()
{
CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 96);
return 1;
}
I want it to do this ideally:
Quote:
|
IF player is on the health object THEN user hp = 100 destory object timer 5000 spawn health object |
I had a bash at it, but probably screwed it up lol
Код:
public OnGameModeInit()
{
CreateObject(2587, 2001.195679, 1547.113892, 14.283400, 0, 0, 1240);
SetPlayerHealth(playerid,100);
DestroyPickup(????);
return 1;
}

