Raised This Month: $51 Target: $400
 12% 

Surf godmode?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 04-04-2009 , 21:27   Surf godmode?
Reply With Quote #1

Hi, I write this code to my surf server but if i have godmode the players can kill me with knife.

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "No kill" #define VERSION "1.0" #define AUTHOR "ILUSION" new g_godmode[33] public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("amx_god", "cmdGod", ADMIN_KICK, "<nick>") } public cmdGod(id, level, cid) {     if(!cmd_access(id,level,cid,2))         return PLUGIN_HANDLED             new arg[32]     read_argv(1, arg, 31)         new target = cmd_target(id, arg, CMDTARGET_ALLOW_SELF)         if (!target) return PLUGIN_HANDLED         new name[32]     get_user_name(target, name, 31)         if (!g_godmode[target])     {         set_user_hitzones(0, target, 0)         client_print(0, print_chat, "%s ahora tiene godmode", name)         g_godmode[target] = true     }     else     {         set_user_hitzones(0, target, 255)         client_print(0, print_chat, "%s ahora no tiene godmode", name)         g_godmode[target] = false     }         return PLUGIN_HANDLED }

Someone can help me ?

Thanks
__________________
ILUSION is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 04-04-2009 , 21:32   Re: Surf godmode?
Reply With Quote #2

Maybe using set_user_godmode ?
__________________
IneedHelp is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 04-04-2009 , 21:39   Re: Surf godmode?
Reply With Quote #3

Quote:
Originally Posted by IneedHelp View Post
Maybe using set_user_godmode ?
Mmm, no, because if I fall from 500mts I dont get damage
__________________
ILUSION is offline
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 05:58.


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