Guest User

GodmodeV4 By EvanA

a guest
Jul 29th, 2013
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.99 KB | None | 0 0
  1. // God-Mode By EvanA(Evan Abagail)
  2. // Version 4.0
  3. // If you're going to edit it, keep my credits in!!!!//
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. new IsInGod[MAX_PLAYERS];
  9.  
  10. COMMAND:god(playerid, params[])
  11. {
  12.     if(IsPlayerAdmin(playerid))
  13.     {
  14.         if(IsInGod[playerid] == 0)
  15.         {
  16.             IsInGod[playerid] = 1;
  17.             SetPlayerHealth(playerid, 99999999999999999999999999999999999999999);
  18.             SendClientMessage(playerid, 0xFFFFFFFF, "Godmode activated. You are now protected from death.");
  19.         }
  20.         else if(IsInGod[playerid] == 1)
  21.         {
  22.             IsInGod[playerid] = 0;
  23.             SetPlayerHealth(playerid, 100);
  24.             SendClientMessage(playerid, 0xFFFFFFFF, "Godmode de-activated. You are now again close to death.");
  25.         }
  26.  
  27.     }
  28.     else SendClientMessage(playerid, 0xFFFFFFFF, "You aren't authorized to use this command.");
  29.     return 1;
  30. }
  31.  
  32. public OnPlayerUpdate(playerid)
  33. {
  34.     if(IsInGod[playerid] == 1) SetPlayerHealth(playerid, 99999999999999);
  35.     return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment