28.11.2011, 09:23
Hello, I know how to make /stats command but don't know how to save them using Zcmd+sscanf
Here's my /Stats command
just example
Here's my /Stats command
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:stats(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
new statstring[128];
SendClientMessage(playerid, COLOR_GREEN, "*** Your Stats ***");
format(statstring, sizeof(statstring), "Kills: %d",PlayerInfo[playerid][pKills]);
SendClientMessage(playerid, COLOR_GREEN, statstring);
format(statstring, sizeof(statstring), "Deaths: %d",PlayerInfo[playerid][pDeaths]);
SendClientMessage(playerid, COLOR_GREEN, statstring);
format(statstring, sizeof(statstring), "Money: $%d",GetPlayerMoney(playerid));
SendClientMessage(playerid, COLOR_GREEN, statstring);
}
return 1;
}
return 0;
}