Page 1 of 1
Admin = God? (in cod ;))
Posted: July 30th, 2007, 12:58 am
by YaNo
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.
Posted: July 30th, 2007, 1:05 am
by Neon
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
Posted: July 30th, 2007, 1:09 am
by YaNo
I once did something that added 100+ health without wait. so i had like 50000 health for running trough a trigger. I think i can make the rcon + id command so that health is like 999999. But I think i can still die due headshots, minefield ect.
Posted: July 30th, 2007, 3:03 am
by Neon
I've played with someone who had hacks for their regeneration..they couldn't even be headshotted ;/
Posted: July 30th, 2007, 5:52 am
by Drofder2004
Easy to mod, but why would it be needed?
Posted: July 30th, 2007, 3:38 pm
by YaNo
i need it for when i'm lanning

and for my clan server

but how to make it? its hard

Posted: July 30th, 2007, 4:17 pm
by Drofder2004
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...
Posted: July 30th, 2007, 8:50 pm
by YaNo
Drofder2004 wrote: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...
i know this. but i'm stuck at changing it

Posted: July 31st, 2007, 2:33 am
by Lethal323
Wouldnt you half to mod the files and make a new txt defining what the new rcon console command is? and then IF that command = 1 then do this...
Im good at modding
I just dont know how to make new console commands...
Other than that I can help you the whole way...
So can drofder

Posted: July 31st, 2007, 10:19 am
by waywaaaard
lethal have a look at the codjumper mod for the servers and learn
Posted: August 6th, 2007, 5:43 pm
by YaNo
YAY!
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;
}
}
Posted: August 6th, 2007, 7:31 pm
by Drofder2004
Well done

Posted: August 6th, 2007, 8:06 pm
by YaNo
Thank you
