31.07.2011, 19:16
Hey everyone, so i was thinking, is this possible to make it
1. admin takes away health from a player
2. player is using health hack - his health comes right back to a 100
3. create a timer and see if players health comes back faster then for example 2 seconds.
Would this be possible to create? Also if i am wrong and sound stupid with my health hack theory, sorry i haven't used hacks so i am not sure how they work. Here is a piece of code, if anyone have any idea please help.
1. admin takes away health from a player
2. player is using health hack - his health comes right back to a 100
3. create a timer and see if players health comes back faster then for example 2 seconds.
Would this be possible to create? Also if i am wrong and sound stupid with my health hack theory, sorry i haven't used hacks so i am not sure how they work. Here is a piece of code, if anyone have any idea please help.
Код:
CMD:hh(playerid, params[]) { if(PVar[playerid][pLevel] >= 1) { if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "(Usage) /hh (ID)"); if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, COLOR_RED, "(Server) Player is not on server."); return SetPlayerHealth(strval(params), 70.0); } else return SendClientMessage(playerid, COLOR_RED, "(Server) You are not an administrator."); }