11.11.2010, 23:38
You will need to detect the class ID. Then that stuff goes into "OnGameModeInIt".
Then you will need to show the textdraw when the class ID is right, using "TextDrawShowForPlayer".
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
Theres so such thing as "OnPlayerClassSelection". And you will also need to "TextDrawHideForPlayer" when
the class ID does not match they class they are currently looking at.
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
If you don't mind, you can just use "GameTextForPlayer", to show a name, but if you wish to stick
to your textdraws, you can. https://sampwiki.blast.hk/wiki/GameTextForPlayer
Then you will need to show the textdraw when the class ID is right, using "TextDrawShowForPlayer".
https://sampwiki.blast.hk/wiki/TextDrawShowForPlayer
Theres so such thing as "OnPlayerClassSelection". And you will also need to "TextDrawHideForPlayer" when
the class ID does not match they class they are currently looking at.
https://sampwiki.blast.hk/wiki/TextDrawHideForPlayer
If you don't mind, you can just use "GameTextForPlayer", to show a name, but if you wish to stick
to your textdraws, you can. https://sampwiki.blast.hk/wiki/GameTextForPlayer