Blabla is looking at your stats - 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: Blabla is looking at your stats (
/showthread.php?tid=479177)
Blabla is looking at your stats -
Blackazur - 03.12.2013
Hello, how can i make that when a player use /stats id that it show the player which stats get looked "Blabla is looking at your stats"?
Re: Blabla is looking at your stats -
Kyance - 03.12.2013
pawn Код:
format(string, sizeof(string), "* %s[%d] is checking your stats!", pName, playerid);
SendClientMessage(id, 0x33CCFFAA, string);
If you have "targetid" then change the "id" to "targetid"
Also, change the "pName" to the thing you have;
pawn Код:
new pName[MAX_PLAYER_NAME]
GetPlayerName(playerid,pName,sizeof(pName));
You might have "PlayerName(playerid)" or something like that..
Re: Blabla is looking at your stats -
SilentSoul - 03.12.2013
What is your saving player data you use (y_ini , dini etc..) ? and show us your enum about player info please too.
Re: Blabla is looking at your stats -
Konstantinos - 03.12.2013
You declare a variable (let's say
id) that stores the player's ID you inputted in the command's parameters. So fomat a string and pass the name of the player (
playerid) who typed the command as an argument and send it to the
id.