PDA

View Full Version : God mode and noclip


blobby
12-12-2007, 11:52 AM
Hey there gus/gurls

I have borrowed a plugin from diamond optic called picky admin witch has god mode and noclip on it i am hoping to use this for a plugin i wanted to make but i cant seem to get no clip to run so if any one has time can you please look at the code below and tell me if they see any thing wrong

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "Picky Admin"
#define VERSION "1.0"
#define AUTHOR "diamond-optic"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("amx_godmode", "admin_godmode", ADMIN_LEVEL_H, "Toggle god mode")
register_clcmd("say :godmode","admin_godmode", ADMIN_LEVEL_H, "say god mode")
register_clcmd("say_team :godmade","admin_godmade", ADMIN_LEVEL_H, "say god mode")
register_concmd("amx_noclip", "admin_noclip", ADMIN_LEVEL_H, "Toggle no-clip")
register_clcmd("say :noclip","admin_noclip", ADMIN_LEVEL_H, "say no clip")
register_clcmd("say_team :noclip","admin_noclip", ADMIN_LEVEL_H, "Say no clip")


}

////////////////////////////////////////////////////////////////
// godmode
//
public admin_godmode(id,level,cid)
{
if (!cmd_access(id, level, cid, 1) || !is_user_connected(id))
return PLUGIN_HANDLED

if(get_user_godmode(id) == 0)
{
set_user_godmode(id,1)
client_print(id,print_chat,"Godmode is now ON")
}
else
{
set_user_godmode(id,0)
client_print(id,print_chat,"Godmode is now OFF")
}

return PLUGIN_HANDLED
}

////////////////////////////////////////////////////////////////
// noclip
//
public admin_noclip(id,level,cid)
{
if (!cmd_access(id, level, cid, 1) || !is_user_connected(id))
return PLUGIN_HANDLED

if(get_user_noclip(id) == 0)
{
set_user_noclip(id,1)
client_print(id,print_chat,"No Clip is now ON")
}
else
{
set_user_noclip(id,0)
client_print(id,print_chat,"No Clip is now OFF")
}

return PLUGIN_HANDLED
}

I have added the say commands with : as my server wont take / commands for some reason god mode works fine but i cant get noclip running ive checked the code fro typos and what not but i cant see anything wrong so if you can see any thing please post it here for me to fix it

Regards

Blobby

blobby
12-14-2007, 11:03 AM
diamond - Optic if you get chance can you look over this for me

Regards

Blobby

diamond-optic
12-14-2007, 08:47 PM
i'll try and take a look at it later today :)

TigerMan4
12-15-2007, 01:59 AM
while you are looking at it , if there is a message that shows up in huge letters that says "<name> has enabled godmode , please remove it or let us know how to remove the chat that tells everyone you are using noclip or godmode. :D

blobby
12-15-2007, 10:16 AM
Cheers D-O

The plugin only tells the admin that the command has been switched on not everyone on the server as far as i can see any way

Blobby

TigerMan4
12-15-2007, 01:26 PM
Cheers D-O

The plugin only tells the admin that the command has been switched on not everyone on the server as far as i can see any way

Blobby


I remember back in the admin mod days and you would apply godmode and it would tell everyone in the server , and they would all gripe about it.

I would only use it to remove spawn campers on maps like walmart , and such where the other team could get IN your spawn and kill you before you could move , so I would toggle godmode , "shovel them" and go about my playing.

but people would still scream "GOD MODE CHEATER" etc. even after you turned it off , they never "saw" that part of it , only the enabled part.

blobby
12-16-2007, 09:09 AM
Yeah i know what your saying m8 people always moan on my server 2 when im using certain admin commands even if its benefiting them XD

diamond-optic
12-19-2007, 12:15 AM
lol blobby.. you trying to be funny here? is this a joke

look at this line you have in your code and tell me if you see something wrong :p:p:p
register_clcmd("say_team :godmade","admin_godmade", ADMIN_LEVEL_H, "say god mode")

TigerMan4
12-19-2007, 01:15 AM
what did godmake ?

blobby
12-19-2007, 02:11 PM
F**K Dam im going never to return to a dark dirty deep hole..... Lol its the drugs lol it has to b god i feel freeking stupid well stupid for all those who have read this please kick me in the ass LMAO sorry for waisting your time Diamond-optic m8 but you know when smoke is good you just have to smoke more hehehe

Regards

Blobby THE o StUpId OnE

blobby
12-19-2007, 02:13 PM
Ok so i have fixed the god made to god mode hehehe but still god mode dont work lol not even the amx_godmode command works lol no clip is fine...
Any ideas

Thanks

Blobby

diamond-optic
12-19-2007, 10:01 PM
this works totally fine for me

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "Picky Admin"
#define VERSION "1.0"
#define AUTHOR "diamond-optic"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

register_concmd("amx_godmode", "admin_godmode", ADMIN_LEVEL_H, "Toggle god mode")
register_clcmd("say :godmode","admin_godmode", ADMIN_LEVEL_H, "say god mode")
register_clcmd("say_team :godmode","admin_godmode", ADMIN_LEVEL_H, "say god mode")
register_concmd("amx_noclip", "admin_noclip", ADMIN_LEVEL_H, "Toggle no-clip")
register_clcmd("say :noclip","admin_noclip", ADMIN_LEVEL_H, "say no clip")
register_clcmd("say_team :noclip","admin_noclip", ADMIN_LEVEL_H, "Say no clip")


}

////////////////////////////////////////////////////////////////
// godmode
//
public admin_godmode(id,level,cid)
{
if (!cmd_access(id, level, cid, 1) || !is_user_connected(id))
return PLUGIN_HANDLED

if(get_user_godmode(id) == 0)
{
set_user_godmode(id,1)
client_print(id,print_chat,"Godmode is now ON")
}
else
{
set_user_godmode(id,0)
client_print(id,print_chat,"Godmode is now OFF")
}

return PLUGIN_HANDLED
}

////////////////////////////////////////////////////////////////
// noclip
//
public admin_noclip(id,level,cid)
{
if (!cmd_access(id, level, cid, 1) || !is_user_connected(id))
return PLUGIN_HANDLED

if(get_user_noclip(id) == 0)
{
set_user_noclip(id,1)
client_print(id,print_chat,"No Clip is now ON")
}
else
{
set_user_noclip(id,0)
client_print(id,print_chat,"No Clip is now OFF")
}

return PLUGIN_HANDLED
}

blobby
12-19-2007, 11:52 PM
Lol bitch hehehehe it would work for you lol ill try recompile hahaha

Cheers for your time m8y

Regards

Blobby =]

blobby
12-20-2007, 08:32 PM
Lol this has gone pear shaped worse now lol

Well when i type :godmode i get godmode but if i type :noclip it says noclip is on so i blast my gun and then trya nd walk but instead of walking i can fly around and go though the map and players and so on my members have nick named it sand worm lol as they can just pop up in the other teams spawn and kill them but its not a good idea to have it lol so lol i have looked hard far and wide and i cant see anything wrong with this plugin i have tried debug but nothing so i though i would come back to the drawing bored with it here my server is Linux and has amx1.76d on it i have used the dodplugins compiler to compile it too 1.76d but its just the same..

So if you have any ideas lemmy know

Regards

Blobby

diamond-optic
12-21-2007, 02:00 PM
noclip is on so i blast my gun and then trya nd walk but instead of walking i can fly around and go though the map and players and so on my members have nick named it sand worm lol as they can just pop up in the other teams spawn and kill them but its not a good idea to have


ummm

thats what no clip is lol

blobby
12-22-2007, 11:17 AM
Oh right well to my knowledge noclip is where you can just keep shooting without a reload thats what i though it was like unlimited ammo or summin lol

diamond-optic
12-22-2007, 12:51 PM
lol noclip (http://en.wikipedia.org/wiki/Noclip)

blobby
12-22-2007, 01:19 PM
Lol okay then so if i wanted to do what i described how would i get this ??? i know how to script it and what not just what is the name of the command im looking for

Blobby

diamond-optic
12-22-2007, 07:39 PM
believe you could use this stock by wilson

////////////////////////////////////////////////////////////////
// Set current clip (not backpack ammo) (stock by Wilson [29th ID])
//
stock set_clip(id,const weapon[],clip)
{
new currentent = -1, gunid = 0

// get origin
new Float:origin[3];
pev(id,pev_origin,origin)
//entity_get_vector(id,EV_VEC_origin,origin);

while((currentent = find_ent_in_sphere(currentent,origin,Float:1.0)) != 0) {
new classname[32];
entity_get_string(currentent,EV_SZ_classname,class name,31);

if(equal(classname,weapon))
gunid = currentent

}

set_pdata_int(gunid,108,clip,4); // set their ammo

return PLUGIN_CONTINUE
}

blobby
12-23-2007, 12:15 AM
Cheers D-O ill have a play with it nice one

=|[76AD]|= TatsuSaisei
12-26-2007, 01:45 AM
ummm

thats what no clip is lol

LMAO !! nice one...