/stats strings - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /stats strings (
/showthread.php?tid=270001)
/stats strings -
Facepunch - 18.07.2011
I would appreciate it if someone could easily tell me how I can make a cmd for when i do :
/stats
SendClientMessage(playerid, COLOR_GREEN, "Money:[the string or however I do it here]");
So that it changes in the client message.
Thanks!
I'm currently making my own rp server from scratch
So this support will help me alot!
I'd appreciate a quick answer!
Re: /stats strings -
Facepunch - 18.07.2011
Or could I use it with the dini system?
Re: /stats strings -
SWEMike - 18.07.2011
pawn Код:
new string[64];
format(string, sizeof(string), "Money: %i", GetPlayerMoney(playerid));
SendClientMessage(playerid, COLOR_GREEN, string);
This should be in the scripting discussion section btw.
Re: /stats strings -
Jack_Rocker - 18.07.2011
pawn Код:
new string[64];
format(string, sizeof(string), "Stat - %i", [PUT YOUR STAT HERE]);
SendClientMessage(playerid, [PUT YOUR COLOR HERE], string);
Hope this helps