Advertisement
LePtitClown

Untitled

May 5th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1. stock Float:GetPlayerArmourHack(playerid)
  2. {
  3.     return Float: armourhack[playerid];
  4. }
  5.  
  6. stock SetPlayerArmourHack(playerid, Float:fArmour)
  7. {
  8.     SetPlayerArmour(playerid, fArmour);
  9.     armourhack[playerid] = fArmour;
  10. }
  11.  
  12. stock IsArmourHacking(playerid)
  13. {
  14.     new Float:fArmour;
  15.         if (GetPlayerArmour(playerid,fArmour)>GetPlayerArmourHack(playerid))
  16.     {
  17.         format(string1, sizeof(string1), "[ADMIN] %s (ID: %d) a été banni pour avoir cheaté son armure", initialname[playerid],playerid);
  18.         SendClientMessageToAll(COLOR_INFO, string1);
  19.             return true;
  20.         }
  21.         return false;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement