Ok i give to you the command :p
[pawn] else if(strcmp(cmdtext, "health", true) == 0) {
if(PlayerToPoint(30, playerid,-819.74688, 1135.71984, 12.28209) || PlayerToPoint(25, playerid,-117.97110, -978.80822, 10.71902) || PlayerToPoint(8, playerid,-851.71875, -78.65664, 11.55582)){
new Dinero = GetPlayerMoney(playerid);
if(Dinero >= 5000) {
SendClientMessage(playerid,COLOR_YELLOW,"You are healthy");
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 5000);
DecPlayerHandCash(playerid,5000);
}
if(Dinero < 4999) {
SendClientMessage(playerid,COLOR_YELLOW,"Need more money to health, you need $ 5000");
}
}
else
{
SendClientMessage(playerid,COLOR_YELLOW,"Need to be in any hospital or the drugs store");
}
return 1;
} [/pawn]