Raised This Month: $ Target: $400
 0% 

Godmode,Noclip etc.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
L337KR3W
New Member
Join Date: Jan 2006
Old 01-09-2006 , 17:47   Godmode,Noclip etc.
Reply With Quote #1

If i wanted to put godmode,nolcip,weapon,health on my self, how do u do that? plz answer back
L337KR3W is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-09-2006 , 17:52  
Reply With Quote #2

set_user_godmode
set_user_noclip
give_item
set_user_health
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
sodiumchloride91
Junior Member
Join Date: Dec 2005
Location: Malaysia
Old 01-09-2006 , 18:24   Helping
Reply With Quote #3

Showing you a simple plugin.

Quote:
#include <amxmodx>
#include <amxmisc>
#include <fun>

public plugin_init()
{
register_plugin("Soandso","1.0","Soandso")
register_clcmd("godmode", "cmd_god")
register_clcmd("noclip", "cmd_noclip")
register_clcmd("Health", "cmd_health", ADMIN_SLAY, "<value>")
}

public cmd_god(id)
{
set_user_godmode(id, 1)
}

public cmd_noclip(id)
{
set_user_noclip(id, 1)
}

public cmd_health(id)
{
new Arg[4]

read_argv(1, Arg, 3)

new Health = str_to_num(Arg)

set_user_health(id, Health)
}
This is not tested yet. Test it yourself. Maybe it work.
I can't test plugins coz i dont have CS.
It compiled without error.

This is just some example i made.
__________________
Salt Rulez! Sodium Reaction!!
MSN Space --> http://spaces.msn.com/members/sodiumchloride91/
sodiumchloride91 is offline
Send a message via MSN to sodiumchloride91
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 01-10-2006 , 09:15  
Reply With Quote #4

Indent!
Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("Fun Functions","1.0","Soandso & Charr")     register_clcmd("godmode", "cmd_god",ADMIN_SLAY)     register_clcmd("noclip", "cmd_noclip",ADMIN_SLAY)     register_clcmd("Health", "cmd_health", ADMIN_SLAY, "<value>") } public cmd_god(id,level,cid) {     if(!cmd_access(id,level,cid,0))         return PLUGIN_HANDLED     set_user_godmode(id, 1)     return PLUGIN_HANDLED } public cmd_noclip(id) {     if(!cmd_access(id,level,cid,0))         return PLUGIN_HANDLED     set_user_noclip(id, 1)     return PLUGIN_HANDLED } public cmd_health(id,level,cid) {     if(!cmd_access(id,level,cid,0))         return PLUGIN_HANDLED     new Arg[4]     read_argv(1, Arg, 3)     new Health = str_to_num(Arg)     set_user_health(id, Health)     return PLUGIN_HANDLED }
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
kasc
Junior Member
Join Date: Mar 2005
Location: The Grand UK!
Old 01-13-2006 , 10:27  
Reply With Quote #5

Just a quick example of a godmode script.

Code:
#include <amxmodx> #include <fun> #include <amxmisx> #include <engine> public plugin_init()       {       register_plugin("Godmode","1.0","Kasc");             register_concmd("amx_godmode","cmd_godmode",ADMIN_KICK," <nick>");     }   public cmd_godmode(id,level,cid)      {       if(cmd_access(id,level,cid,2))        {         new arg1[32];           read_argv(1,arg1,31);         new target = cmd_target(id,arg1,1);         new ifGodmode = get_user_godmode(target);         if(!ifGodmode) {             set_user_godmode(target);             return PLGUN_HANDLED;             }         else {             get_user_name(target, targetName, 31);             console_print(id,"%i already has godmode", targetName)             return PLUGIN_HANDLED         }     } }
Im not totaly confident this has no errors since i made this at school, but it is the sort of thing you want to be putting.
__________________
I like it when you get bad karma, especially because of its randomness!
kasc is offline
Send a message via AIM to kasc Send a message via MSN to kasc
Reply


Thread Tools
Display Modes

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 16:09.


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