18.03.2009, 23:18
pawn Код:
//global
new pDLicense[MAX_PLAYERS];
//onplayercommandtext
if(!strcmp(cmdtext, "/buylicense", true))
{
if(GetPlayerMoney(playerid) < 500)
return SendClientMessage(playerid, COLOR_RED, "Not enough money!");
pDLicense[playerid] = 1;
return SendClientMessage(playerid, COLOR_GREEN, "Congratulations! You've got your first driving license!");
}