Quote:
Originally Posted by MadeMan
Use some messages to know where the problem is.
pawn Код:
if(!strcmp(cmdtext, "/Buygun", true)) { if(IsPlayerInArea(playerid,50,2444.3787,-1976.6405,13.5539)) { if(GetPlayerMoney(playerid) >= 100) { GivePlayerWeapon(playerid,22,100); GivePlayerMoney(playerid, -100); SendClientMessage(playerid, 0xFFFFFFFF, "You have bought a weapon"); } else { SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money"); } } else { SendClientMessage(playerid, 0xFFFFFFFF, "You are not in the area"); } return 1; }
|
Some how you fixed it whit that code o.O The problem was that i clouden buy it when i had over 100$ but now i can thank you (: