Admin = God? (in cod ;))
Moderator: Core Staff
Admin = God? (in cod ;))
I latly played Garry's Mod 10 a bit, with the hunter mod.
Wich gives admins the ability to make ppl Invincible.
I'm wondering if there is some code around that will give ppl with rcon acces the ability (i love the word ^__^) to make a playerID invincible. Thnx in advantage.
Wich gives admins the ability to make ppl Invincible.
I'm wondering if there is some code around that will give ppl with rcon acces the ability (i love the word ^__^) to make a playerID invincible. Thnx in advantage.
-
- Too cool for CoDJumper
- Posts: 3535
- Joined: April 21st, 2005, 8:54 pm
- Location: England, Redditch
I think this would be possible in cod2 ;/ If you used the regeneration hack and included it in a mod so it gave it to people logged in to rcon.
I don't think its actually possible to give them godmode because of the way devmap an that works. Also I have no idea about settings player health, so setting that to a large amount might not work either.
But tbh im guessing
I don't think its actually possible to give them godmode because of the way devmap an that works. Also I have no idea about settings player health, so setting that to a large amount might not work either.
But tbh im guessing
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Inside the gametype files you will find "callback_playerdamaged" and callback_playerkilled. Those are where the damage and deaths take place, in those sections of the files you make the changes...
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- Core Staff
- Posts: 2214
- Joined: February 6th, 2006, 3:18 pm
- Location: Germany/Bayern
lethal have a look at the codjumper mod for the servers and learn
THAT HANDS WERE NOT TRACED!
visit my blog: Link
visit my blog: Link
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
YAY!
I made it ^^
it will make you invincible by putting the health to high so it will go all away ^^
have fun
I made it ^^
it will make you invincible by putting the health to high so it will go all away ^^
have fun
Code: Select all
hsgodmode()
{
self endon("boot");
setcvar("g_godx", "");
while(1)
{
if(getcvar("g_godx") != "")
{
killPlayerNum = getcvarint("g_godx");
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
thisPlayerNum = players[i] getEntityNumber();
if(thisPlayerNum == killPlayerNum)
{
players[i].health = 999999999;
}
}
setcvar("g_godx", "");
}
wait 0.05;
}
}
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Who is online
Users browsing this forum: No registered users and 28 guests