Auto Spawn Object
#1

Hi,

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;
}
thanks
Reply


Messages In This Thread
Auto Spawn Object - by sheepondrugs - 08.08.2010, 23:43
Re: Auto Spawn Object - by (.Aztec); - 08.08.2010, 23:56
Re: Auto Spawn Object - by [L3th4l] - 08.08.2010, 23:58
Re: Auto Spawn Object - by sheepondrugs - 09.08.2010, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)