SA-MP Forums Archive
Whats that function called? - 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: Whats that function called? (/showthread.php?tid=649982)



Whats that function called? - wallen - 18.02.2018

That when you go on the TAB stuff and click on player's nickname it would do some actions like showing stats or whatever.


Re: Whats that function called? - Banditul18 - 18.02.2018

This one: https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer


Re: Whats that function called? - solstice_ - 18.02.2018

You can create a stock and then use it to display the statistics of the player, example:

PHP код:
stock ShowStats(playerid)
{
    new 
string[3000];
    
format(stringsizeof(string), "User Statistics for: %s"GetPlayerNameEx(playerid));
    
SendClientMessage(playeridCOLOR_WHITEstring);
    
    
//etc
    
return 1;

Then you can use this: https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer


Re: Whats that function called? - wallen - 18.02.2018

Thanks both, appreciated.