01.01.2011, 11:01
If you started yesterday, I dont think you fully understand pawn now.
To do the things you asked for, you have to work with samp's callback structure. Callbacks are called, if something specific happens in the game or on the server, like when a player connects, when a player dies, when someone mods a vehicle,... There are callbacks for lots of events, you can see them all on this page: https://sampwiki.blast.hk/wiki/Scripting_Callbacks
(The samp wiki will become one of your best virtual friends when you keep on learning to script. Always search in it, before asking here in the forum, or perople will just send you a link to the wiki, that is answering your question)
The callback that you need is OnPlayerRequestClass (https://sampwiki.blast.hk/wiki/OnPlayerRequestClass)
It is called when a player is at class selection, and changes the class with the arrow buttons.
It is probably already in your script, so search for it, you can just add things you like.
To make a player dance, take a look at this: https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction
Just add it somewhere in the callback.
To show something, you will have to use textdraws (hard for beginners) or gametexts (I recommend you using them at first, https://sampwiki.blast.hk/wiki/GameTextForPlayer)
So, have fun experimenting with it
To do the things you asked for, you have to work with samp's callback structure. Callbacks are called, if something specific happens in the game or on the server, like when a player connects, when a player dies, when someone mods a vehicle,... There are callbacks for lots of events, you can see them all on this page: https://sampwiki.blast.hk/wiki/Scripting_Callbacks
(The samp wiki will become one of your best virtual friends when you keep on learning to script. Always search in it, before asking here in the forum, or perople will just send you a link to the wiki, that is answering your question)
The callback that you need is OnPlayerRequestClass (https://sampwiki.blast.hk/wiki/OnPlayerRequestClass)
It is called when a player is at class selection, and changes the class with the arrow buttons.
It is probably already in your script, so search for it, you can just add things you like.
To make a player dance, take a look at this: https://sampwiki.blast.hk/wiki/SetPlayerSpecialAction
Just add it somewhere in the callback.
To show something, you will have to use textdraws (hard for beginners) or gametexts (I recommend you using them at first, https://sampwiki.blast.hk/wiki/GameTextForPlayer)
So, have fun experimenting with it

