Help with Anti Avoid Death
#6

pawn Код:
//in the beginning
new count[MAX_PLAYERS];

//Under OnPlayerTakeDamage:
count[playerid] = GetTickCount();

//your cmd
CMD:heal(playerid,params[])
{
    if(GetTickCount() - count[playerid]  > 10000) return SendClientMessage(playerid, -1, "ERROR: You have been recently damaged");
    GivePlayerMoney(playerid, -500);
    SetPlayerHealth(playerid, 100.0);
    return 1;
}
Reply


Messages In This Thread
Help with Anti Avoid Death - by GeekSiMo - 24.07.2014, 20:56
Re: Help with Anti Avoid Death - by Battlezone - 24.07.2014, 21:06
Re: Help with Anti Avoid Death - by Wizzy951 - 24.07.2014, 21:09
Re: Help with Anti Avoid Death - by Battlezone - 24.07.2014, 21:11
Re: Help with Anti Avoid Death - by GeekSiMo - 24.07.2014, 21:11
Re: Help with Anti Avoid Death - by Battlezone - 24.07.2014, 21:14
Re: Help with Anti Avoid Death - by GeekSiMo - 24.07.2014, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)