Problem with F4 and spectate if suicide
#1

Quote:

public OnPlayerDeath(playerid, killerid, reason)

{
if(killerid == playerid)
{
SendClientMessage(playerid, COLORHERE, "You killed yourself");
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
}
else
{
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
SetTimerEx("StopSpeccing", 10000, false, "i", playerid);
}
}

This is under OnPlayerDeath, and i have to callback funtion of StopSpeccing at the bottom etc.. But when i get killed, and press F4 first, it doesn't go to the class selection, and if i do suicide it doesn't wait 10 seconds at all, it just respawns..
Reply


Messages In This Thread
Problem with F4 and spectate if suicide - by TheKingWillem - 09.08.2009, 10:48
Re: Problem with F4 and spectate if suicide - by Weirdosport - 09.08.2009, 10:50
Re: Problem with F4 and spectate if suicide - by TheKingWillem - 09.08.2009, 10:52
Re: Problem with F4 and spectate if suicide - by Weirdosport - 09.08.2009, 10:58
Re: Problem with F4 and spectate if suicide - by TheKingWillem - 09.08.2009, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)