Little help with spectate/respawn
#1

Oke so i've got this

Quote:

public OnPlayerDeath(playerid, killerid, reason)

{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);

and this at the bottom

Quote:

public StopSpeccing(playerid)
{
TogglePlayerSpectating(playerid, 0);
}

Everything works fine, so if you get shot you spectate that player etc.. But when i suicide like typing /kill, or fall to death, it doesn't respawn, it just looks in the sky without respawning, how can i make it to respawn if their is no killer id?
Reply


Messages In This Thread
Little help with spectate/respawn - by urkiefly101 - 08.08.2009, 15:17
Re: Little help with spectate/respawn - by urkiefly101 - 08.08.2009, 16:21
Re: Little help with spectate/respawn - by urkiefly101 - 08.08.2009, 17:41
Re: Little help with spectate/respawn - by Paladin - 08.08.2009, 17:56
Re: Little help with spectate/respawn - by TheKingWillem - 08.08.2009, 18:05
Re: Little help with spectate/respawn - by Paladin - 09.08.2009, 09:10
Re: Little help with spectate/respawn - by Woet - 09.08.2009, 09:52

Forum Jump:


Users browsing this thread: 2 Guest(s)