03.02.2013, 18:12
pawn Код:
CMD:stats(playerid, params[])
{
new str[128],fightstyle[40];
switch(pInfo[playerid][Style])
{
case 4: format(fightstyle, sizeof(fightstyle), "Normal");
case 5: format(fightstyle, sizeof(fightstyle), "Boxing");
case 6: format(fightstyle, sizeof(fightstyle), "Kungfu");
case 7: format(fightstyle, sizeof(fightstyle), "Kneehead");
case 15: format(fightstyle, sizeof(fightstyle), "Grabkick");
case 16: format(fightstyle, sizeof(fightstyle), "Elbow");
}
format(str,sizeof(str),"Cash: %i - Cigars: %i - Fightstyle: %s",pInfo[playerid][Cash],pInfo[playerid][Cigar],fightstyle);
ShowPlayerDialog(playerid,13,0,"Stats",str,"Close","");
return 1;
}