12.01.2010, 16:23
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", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}
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", GetPlayerMoney(playerid));
SendClientMessage(playerid, 0xFFFFFFAA, string);
return 1;
}