19.10.2013, 21:12
pawn Код:
if(strcmp(cmd, "/heal", true) == 0) {
if((!IsPlayerInRangeOfPoint(playerid,5.00,1105.5730,-1313.1779,13.2393)) || IsPlayerInRangeOfPoint(playerid,5.00,614.4229,-1773.3818,13.8586)) || IsPlayerInRangeOfPoint(playerid,5.00,2217.0942,-1170.1138,25.3024)) || IsPlayerInRangeOfPoint(playerid,5.00,2049.8718,-2025.0125,13.1116))) return SendClientMessage(playerid, COLOR_RED, "You are not close to the places where you can buy health and armor [The Hearth on the map]");
SetPlayerHealth(playerid,100);
SetPlayerArmor(playerid,50);
SetPlayerCash(playerid,-3500);
SendClientMessage(playerid,COLOR_GREEN,"You buy 100 Health and 50 Armor for 3500$ !");