20.04.2011, 06:13
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Redbull", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522)) { if(GetPlayerMoney(playerid) >= 100) { GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER ); SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } else { SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } return 1; }
This is line 93:
Код:
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522))