06.04.2013, 06:11
hello everyone, i try to make /water in DP for prisoners.
How? if the character stay 40, 50 minutes without eat, he will die, then will need feeding in jail, but the range this is too high...
i can use /water in locker room, and on the jail
code:
How? if the character stay 40, 50 minutes without eat, he will die, then will need feeding in jail, but the range this is too high...
i can use /water in locker room, and on the jail
code:
Quote:
if(strcmp(cmdtext, "/water", true) == 0) { if(IsPlayerInRangeOfPoint(playerid,6, 251.2, 85.4, 1002.85)) { new Float:health; GetPlayerHealth(playerid,health); format(string, sizeof(string), "* %s drinks some water.", PlayerName(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); health += 25.0; if(health > 100.0) { health = 100.0; } SetPlayerHealth(playerid, health); } else { SendClientMessage(playerid, COLOR_GREY, " You are not near a water source !"); return 1; } return 1; } |