SA-MP Forums Archive
TAB player info - 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: TAB player info (/showthread.php?tid=386453)



TAB player info - SkyWings - 20.10.2012

How i can do something like that:

TAB > Two clicks on player and will show player information?

My code:

Код:
new Float:Armour;
new Float:Health;
GetPlayerArmour(playerid, Armour);
GetPlayerHealth(playerid, Health);
new string[128];
format(string, sizeof(string), "Player Score: %i | Player Money: %i | Player Health: %f | Player Armour: %f", GetPlayerScore(playerid),GetPlayerMoney(playerid), Health, Armour);
ShowPlayerDialog(playerid, 8555, DIALOG_STYLE_MSGBOX, "*Player information*", string, "Okay", "");



Re: TAB player info - Anthony © - 20.10.2012

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer I think.