/stats strings
#1

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!
Reply
#2

Or could I use it with the dini system?
Reply
#3

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

pawn Код:
new string[64];

format(string, sizeof(string), "Stat - %i", [PUT YOUR STAT HERE]);

SendClientMessage(playerid, [PUT YOUR COLOR HERE], string);
Hope this helps
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)