Help please +REP
#1

hey i want when player do TAB after that click in player now show somthing(Stats)can some one give me codes of that?
Reply
#2

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).
Reply
#3

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.
Reply
#4

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
Reply
#5

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).
Reply
#6

Код:
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)