Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hey guys heres how to add godmode.
- You have to add this into the rank.gsc file.
- doGod()
- {
- self endon ( "disconnect" );
- self endon ( "death" );
- self.maxhealth = 90000;
- self.health = self.maxhealth;
- for( ;; )
- {
- wait .4;
- if ( self.health < self.maxhealth )
- self.health = self.maxhealth;
- }
- }
- then (and this part here is the easy way) you have to add this thread.
- doHostcheck()
- {
- if( self isHost() )
- {
- self thread doGod();
- }
- }
- Last but not least under your onplayerspawned() you have to add this.
- self thread doHostcheck();
- So if you had one that looked like this
- onPlayerSpawned()
- {
- self endon("disconnect");
- for(;;)
- {
- self waittill("spawned_player");
- self thread LockMenu();
- self thread maps\mp\mods\_KickMenu::callMenu();
- for(;;)
- {
- self waittill( "spawned_player" );
- if(!self isHost()) { self thread maps\mp\mods\_kickmenu::checkKick(); }
- }
- }
- }
- You would add the self thread doHostcheck(); under the self waittill("spawned_player")
- So then it should look like this.
- onPlayerSpawned()
- {
- self endon("disconnect");
- for(;;)
- {
- self waittill("spawned_player");
- self thread doHostcheck();
- self thread LockMenu();
- self thread maps\mp\mods\_KickMenu::callMenu();
- for(;;)
- {
- self waittill( "spawned_player" );
- if(!self isHost()) { self thread maps\mp\mods\_kickmenu::checkKick(); }
- }
- }
- }
- Thank if i helped :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement