onplayerclickplayer
#1

well i was wondering if someone clicks this player it will show his stats. I was womndering how to do this
Reply
#2

What kind of stats?
Reply
#3

like kills, deaths, score, money
Reply
#4

The first thing you'll have to do is start SAVING the stats. Most admin systems will do it perfectly.
Reply
#5

ok thanks, I understand, then what should i do?

like i wanted it to show as if sending them client messages. i didnt know though how to do that
Reply
#6

You should add to OnPlayerClickPlayer function something like this:
pawn Код:
new string[128];
new name[MAX_PLAYER_NAME];
GetPlayerName(clickedplayerid, name, sizeof(name));
format(string, sizeof(string), "Name: %s, Kills: %d, Deaths: %d", name, Kills[clickedplayerid], Deaths[clickedplayerid]);
SendClientMessage(playerid, 0xFFFFFF00, string);
This is an example, use your own variables for Kills and Deaths and whatever
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)