11.08.2009, 21:12
both wrong
pawn Код:
if (strcmp("/buygun ak47", cmdtext, true) == 0)
{
if(GetPlayerMoney(playerid) < 3500)
{
SendClientMessage(playerid, COLOR_RED, "not have enough money");
}
else
{
SendClientMessage(playerid,0xAA3333AA, "Thank you for buying an Ak47,have fun with it");
GivePlayerMoney(playerid,-3500);
GivePlayerWeapon(playerid,30,470);
}
return 1;
}