Help please +REP - 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: Help please +REP (
/showthread.php?tid=576592)
Help please +REP -
SNAKE12 - 05.06.2015
hey i want when player do TAB after that click in player now show somthing(Stats)can some one give me codes of that?
Re: Help please +REP -
Konstantinos - 05.06.2015
Use this callback:
https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
Quote:
Originally Posted by SNAKE12
can some one give me codes of that?
|
No need, you got the callback - do what you want in it (show stats or whatever).
Re: Help please +REP -
Bingo - 05.06.2015
You have to code by using your skills, If you have a /stats command then it's more easy just do some edits to the codes and place it under OnPlayerClickPlayer.
Not just copy/paste.
Re: Help please +REP -
SNAKE12 - 05.06.2015
Quote:
Originally Posted by Bingo
You have to code by using your skills, If you have a /stats command then it's more easy just do some edits to the codes and place it under OnPlayerClickPlayer.
Not just copy/paste.
|
Yeah i have /stats cmd but its so so hard to this
Re: Help please +REP -
Konstantinos - 05.06.2015
Post the /stats command, we will call it though the callback (no idea though if it has an ID parameter, that's why we need the command).
Re: Help please +REP -
JaydenJason - 05.06.2015
Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
cmd_stats(clickedplayerid, ""); // or w/e the cmd for stats is
return 1;
}
wait no i dont think this'll work, try posting your stats cmd