Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // God-Mode By EvanA(Evan Abagail)
- // Version 4.0
- // If you're going to edit it, keep my credits in!!!!//
- #include <a_samp>
- #include <zcmd>
- new IsInGod[MAX_PLAYERS];
- COMMAND:god(playerid, params[])
- {
- if(IsPlayerAdmin(playerid))
- {
- if(IsInGod[playerid] == 0)
- {
- IsInGod[playerid] = 1;
- SetPlayerHealth(playerid, 99999999999999999999999999999999999999999);
- SendClientMessage(playerid, 0xFFFFFFFF, "Godmode activated. You are now protected from death.");
- }
- else if(IsInGod[playerid] == 1)
- {
- IsInGod[playerid] = 0;
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, 0xFFFFFFFF, "Godmode de-activated. You are now again close to death.");
- }
- }
- else SendClientMessage(playerid, 0xFFFFFFFF, "You aren't authorized to use this command.");
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(IsInGod[playerid] == 1) SetPlayerHealth(playerid, 99999999999999);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment