11.10.2014, 02:13
Just for a bit more efficiency..
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/buycar", true)) return ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Car Dealership", "Huntley\nAdmiral\nBurrito\nStratum\nSadler\nUranus", "Buy", "Close");
if(!strcmp(cmdtext, "/stats", true))
{
new string[24];
format(string, sizeof(string), "Money: [$%d]", PlayerInfo[playerid][pMoney]);
SendClientMessage(playerid, COLOR_GREEN, string);
return 1;
}
return 0;
}