27.03.2014, 09:10
Код:
if (strcmp("/buyrod", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359) { if(GetPlayerMoneyEx(playerid) >= 400) { if(FRod[playerid] == 0) { GivePlayerMoney(playerid,-400); FRod[playerid] = 1; SendClientMessage(playerid,0xFFFFFFFF, "Fishing Rod {88AA88}Bought!"); SendClientMessage(playerid,0xFFFFFFFF, "/TakeRod to Take it out!"); } } else { SendClientMessage(playerid,COLOR_GREY,"You can't afford this."); return 1; } } }