18.07.2013, 14:03
PHP код:
if (strcmp("/status", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
new string1[128],stats[1024];
format(string1,sizeof(string1),"Nume:%s\nSkill:%d\nBani:%d\nFactiune:%d",name,PlayerInfo[playerid][wSkill],PlayerInfo[playerid][pCash],gTeam[playerid]);
format(stats, sizeof stats, "%s", string1);
ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Your account:",stats,"Ok","");
}
}