27.07.2012, 10:19
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/stats", cmdtext, true, 10) == 0)
{
new DIALOG_STATS;
new str[256];
new money;
new name;
new score;
money = PlayerInfo[playerid][pMoney],
name = PlayerInfo[playerid][pName],
score = PlayerInfo[playerid][pScore],
format(str, sizeof(str), "Name:[ %s ]\nLevel:[ %d ]\nMoney: [ %d ] ", money,name,score);
ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX , "PlayerStats", str, "Close", "");
return 1;
}
}
I also wanted to ask that how to dsplay player weapons in this?