AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   restrict menu (https://forums.alliedmods.net/showthread.php?t=128521)

omgitsme 06-02-2010 00:37

restrict menu
 
hey, i'm trying to make my first plugin for zombie mod (later for other plugins, mods to) i want to try to restrict the zombie admin menu to 3 times use per round. please don't laught, it's my first plugin. and i don't know if somethings are right so far (and please, don't lituraly give me the plugin. help me :D i want to learn to script)
so far
Quote:

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <zombieplague>

new amx_restrict
new amx_unrestrict

public plugin_init()
{
register_plugin("Zombie admin menu restrict", "1.0", "omgitsme");
register_event("
good?

fysiks 06-02-2010 01:11

Re: restrict menu
 
Does it work?


P.S. You should probably start simple.

omgitsme 06-02-2010 01:48

Re: restrict menu
 
i don't know. when i get home i'll add too it and see if it compiles. but is this hard? i thought it would be a easy plugin

Alucard^ 06-02-2010 15:45

Re: restrict menu
 
Quote:

Originally Posted by omgitsme (Post 1197711)
i don't know. when i get home i'll add too it and see if it compiles. but is this hard? i thought it would be a easy plugin

Is not easy when you start scripting.

HLM 06-02-2010 15:48

Re: restrict menu
 
I doubt this would help you alot, but I originally started coding by making simple plugins, such as an admin only noclip plugin, then a godmode, then I eventually got into harder things, such as making a player turn invisible, replacing what a client says when a regex match occured (IP advertisement) with a random one from a file.

start small then gradually work up to bigger things :)

omgitsme 06-02-2010 15:58

Re: restrict menu
 
ok, thanks. i thought it was a... well, not easy. but i did'nt think it would be really hard. :D can you tell me a random little plugin to make? i don't know what to make :D

HLM 06-02-2010 16:14

Re: restrict menu
 
admin only noclip, possibly add the show_activity stuff too ;)


All times are GMT -4. The time now is 05:23.

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