25.05.2012, 15:51
How can I do so if the player is in dept of money so he can't use /heal anymore?
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
if(IsPlayerCloseToEnemy(playerid)) return SendClientMessage(playerid, COLOR_ORANGE, "You are to close to your enemies to refill your health.");
GivePlayerMoney(playerid, -1000);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, GREEN, "You have refilled your health but lost 1000.");
return true;
}