SA-MP Forums Archive
[Question] OnPlayerDeath - Reason 200? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Question] OnPlayerDeath - Reason 200? (/showthread.php?tid=100386)



[Question] OnPlayerDeath - Reason 200? - godknightx - 04.10.2009

Hy all.

How can i detect, if the player is connected to the server?
I tried with OnPlayerDeath, but its dont activated...

So, any idea?

Thanx


Re: [Question] OnPlayerDeath - Reason 200? - dugi - 04.10.2009

No that's not how you do it, check this: https://sampwiki.blast.hk/wiki/IsPlayerConnected


Re: [Question] OnPlayerDeath - Reason 200? - godknightx - 04.10.2009

Quote:
Originally Posted by dugi
No that's not how you do it, check this: https://sampwiki.blast.hk/wiki/IsPlayerConnected
Lol... No...
I want disable the class selection, but i can't detect, when connected the player...


Re: [Question] OnPlayerDeath - Reason 200? - Sergei - 04.10.2009

Put player in spectation mode under OnPlayerRequestClass to avoid class selection.


Re: [Question] OnPlayerDeath - Reason 200? - godknightx - 04.10.2009

Quote:
Originally Posted by $ЂЯĢ
Put player in spectation mode under OnPlayerRequestClass to avoid class selection.
Yes... but how can i detect when put player to the class select ?


Re: [Question] OnPlayerDeath - Reason 200? - BlackFoX - 04.10.2009

OnPlayerRequestClass ?


Re: [Question] OnPlayerDeath - Reason 200? - godknightx - 04.10.2009

Quote:
Originally Posted by BlackFoX
OnPlayerRequestClass ?
No... because if i put e.g SendClientMessageToAll(COLOR_GREY, "Activated"); to OnPlayerRequestClass its only activate when i press the button, or shift...


Re: [Question] OnPlayerDeath - Reason 200? - godknightx - 04.10.2009

Quote:
Originally Posted by Seif_
It's not suppose to? If it does, try to put him in spectator mode in OnPlayerConnect.
Yes, and if i toggled to spectate mode, do spawning the player ?

Edit: Oh sorry... the OnPlayerRequestClass is activated... but the variable is not defined... omg...


Re: [Question] OnPlayerDeath - Reason 200? - Mikep. - 05.10.2009

Quote:
Originally Posted by godknightx
Quote:
Originally Posted by BlackFoX
OnPlayerRequestClass ?
No... because if i put e.g SendClientMessageToAll(COLOR_GREY, "Activated"); to OnPlayerRequestClass its only activate when i press the button, or shift...
Actually it's called everytime their class changes, including when you first connect.