[Question] OnPlayerDeath - Reason 200?
#1

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
Reply
#2

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

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...
Reply
#4

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

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 ?
Reply
#6

OnPlayerRequestClass ?
Reply
#7

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...
Reply
#8

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...
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)