Raised This Month: $32 Target: $400
 8% 

[REQ] Auto Godmode


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 12-26-2007 , 16:12   [REQ] Auto Godmode
Reply With Quote #1

Hi, i have a KZ server, and need when player join server gives him godmode, but cant find it...
Help pls, thank you.
AcidoX is offline
Send a message via Skype™ to AcidoX
Old 12-26-2007, 16:45
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 12-26-2007 , 21:33   Re: [REQ] Auto Godmode
Reply With Quote #2

Sorry, wrong posted Anyway alittle fix
Code:
register_event("ResetHUD","spawned","be")
}
public spawned(id)
{
set_task(1.0,"god",id)
}
public god(id)
{
set_user_godmode(id, 1)
}
AcidoX is offline
Send a message via Skype™ to AcidoX
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 12-26-2007 , 21:51   Re: [REQ] Auto Godmode
Reply With Quote #3

Quote:
Originally Posted by AcidoX View Post
Sorry, wrong posted Anyway alittle fix
Code:
register_event("ResetHUD","spawned","be")
}
public spawned(id)
{
set_task(1.0,"god",id)
}
public god(id)
{
set_user_godmode(id, 1)
}
What's the fix?
__________________
M249-M4A1 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 12-27-2007 , 03:37   Re: [REQ] Auto Godmode
Reply With Quote #4

Ewww, ident the code a bit ?! and also you use fun module ?!

Code:
#include <amxmodx>
#include <fakemeta>
 
#define PLUGIN "GodMode"
#define VERSION "1.0"
#define AUTHOR "Alka"

public plugin_init() {
 
 register_plugin(PLUGIN, VERSION, AUTHOR);
 
 register_event("ResetHUD", "EventSpawn", "be")
}
 
public EventSpawn(id)
 set_task(0.2, "cmdSetGodmode", id + 1337);
 
public cmdSetGodmode(id)
{
 id -= 1337;
 
 if(is_user_connected(id))
  set_pev(id, pev_takedamage, DAMAGE_NO);
}
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Old 12-27-2007, 05:05
fxfighter
This message has been deleted by fxfighter. Reason: gfaw
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode