[HELP]Stats
#2

Quote:
Originally Posted by Remba
I made some kind of stats(not working).I was wondering if you guys could help.I need this for my server.
I want something like when a player hit /stats it says:His name,money,team,weapons(not needed).
So i made this and it only shows cash.
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/stats",cmdtext,true, 10) == 0)
{
new name[MAX_PLAYER_NAME],string[48];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Money:$%i Name:%s Team:%d", GetPlayerMoney(playerid),name,GetPlayerTeam(player id));
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}
Does it works now?
Reply


Messages In This Thread
[HELP]Stats - by Remba - 12.01.2010, 16:23
Re: [HELP]Stats - by SiJ - 12.01.2010, 16:31
Re: [HELP]Stats - by Remba - 12.01.2010, 19:11
Re: [HELP]Stats - by Correlli - 12.01.2010, 19:13
Re: [HELP]Stats - by Remba - 12.01.2010, 19:18
Re: [HELP]Stats - by SiJ - 12.01.2010, 19:46
Re: [HELP]Stats - by Remba - 12.01.2010, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)