OnPlayerDeath
#4


Top of script

Код:
new Died[MAX_PLAYERS];
OnPlayerConnect

Код:
Died[playerid] = 0;
OnPlayerDeath

Код:
Died[playerid] 1;
OnPlayerSpawn

Код:
if(Died[playerid] == 1)
{
SetPlayerInterior(playerid,0);//incase died in an interior
SetPlayerPos(playerid,/*Hospital Co-ord*/);
Died[playerid] = 0;
//anything else like medical bill goes here
return 1;
}
Reply


Messages In This Thread
OnPlayerDeath - by Jakku - 01.08.2009, 08:51
Re: OnPlayerDeath - by Andom - 01.08.2009, 09:13
Re: OnPlayerDeath - by Geekzor - 01.08.2009, 09:16
Re: OnPlayerDeath - by pagie1111 - 01.08.2009, 09:49
Re: OnPlayerDeath - by Jakku - 01.08.2009, 10:01
Re: OnPlayerDeath - by PKRanger - 01.08.2009, 15:01
Re: OnPlayerDeath - by Jakku - 02.08.2009, 11:03
Re: OnPlayerDeath - by Woet - 02.08.2009, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)