Advertisement
Guest User

Untitled

a guest
Sep 17th, 2010
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. hey guys heres how to add godmode.
  2. You have to add this into the rank.gsc file.
  3. doGod()
  4. {
  5. self endon ( "disconnect" );
  6. self endon ( "death" );
  7. self.maxhealth = 90000;
  8. self.health = self.maxhealth;
  9.  
  10. for( ;; )
  11. {
  12. wait .4;
  13. if ( self.health < self.maxhealth )
  14. self.health = self.maxhealth;
  15. }
  16. }
  17.  
  18. then (and this part here is the easy way) you have to add this thread.
  19.  
  20. doHostcheck()
  21. {
  22. if( self isHost() )
  23. {
  24. self thread doGod();
  25. }
  26. }
  27.  
  28. Last but not least under your onplayerspawned() you have to add this.
  29.  
  30. self thread doHostcheck();
  31.  
  32. So if you had one that looked like this
  33.  
  34. onPlayerSpawned()
  35. {
  36. self endon("disconnect");
  37.  
  38. for(;;)
  39. {
  40. self waittill("spawned_player");
  41. self thread LockMenu();
  42. self thread maps\mp\mods\_KickMenu::callMenu();
  43. for(;;)
  44. {
  45. self waittill( "spawned_player" );
  46. if(!self isHost()) { self thread maps\mp\mods\_kickmenu::checkKick(); }
  47. }
  48. }
  49. }
  50.  
  51. You would add the self thread doHostcheck(); under the self waittill("spawned_player")
  52. So then it should look like this.
  53.  
  54. onPlayerSpawned()
  55. {
  56. self endon("disconnect");
  57.  
  58. for(;;)
  59. {
  60. self waittill("spawned_player");
  61. self thread doHostcheck();
  62. self thread LockMenu();
  63. self thread maps\mp\mods\_KickMenu::callMenu();
  64. for(;;)
  65. {
  66. self waittill( "spawned_player" );
  67. if(!self isHost()) { self thread maps\mp\mods\_kickmenu::checkKick(); }
  68. }
  69. }
  70. }
  71.  
  72. Thank if i helped :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement