SA-MP Forums Archive
Spec-Spec - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spec-Spec (/showthread.php?tid=316735)



Spec-Spec - vassilis - 08.02.2012

Hey guys will this be right when someone dies it will spectate the killer

pawn Код:
OnPlayerDeath(playerid,killerid,reason)
{
TogglePlayerSpectating(playerid,1);
PlayerSpectatePlayer(playerid,killerid);
SetTimer("SpecOff",5000,false);
return 1;
}

public SpecOff(playerid)
{
TogglePlayerSpectating(playerid,0);
Spawn(playerid);
return 1;
}
will this work?


Re: Spec-Spec - iTorran - 08.02.2012

Why not try it and see for yourself?


Re: Spec-Spec - vassilis - 08.02.2012

because i cant i am using it on lan.


Re: Spec-Spec - suhrab_mujeeb - 08.02.2012

I think Ronaldo_Raul was working on something like this. I am sure you know him (you are advertising his server). Ask him to give a copy to you or release it. As far as I know it won't work under OnPlayerDeath, make it under OnPlayerSpawn.