31.10.2013, 23:05
He will have errors with loose intedition
here is the right one
[EDIT] I just edited Mattakill's post
here is the right one
pawn Код:
if (strcmp("/9mm", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, 0xAA3333AA, "You do not have enough money");
GivePlayerWeapon(playerid, 22, 102);
GivePlayerMoney(playerid, -7000 );
SendClientMessage(playerid, 0xAA3333AA, "You have been given a 9mm");
return 1;//forgetting this will cause unknown command
}