AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ]Custom Plugins! (https://forums.alliedmods.net/showthread.php?t=163223)

PaTrick C. 07-27-2011 23:15

[REQ]Custom Plugins!
 
Hey again , i don't know any other place for this so i try again here, i need some plugins for my HNS server bcuz' it's kinda bad looking, so i need to make some changes. 2pac said it 2 :P

1. i have this adminchat.amxx and it's so cool, when u are admin and u are T, the messages u type in the amx_chat will show up in red for others, and blue if CTs, but i have like 60 admins, so i need amx_chat2, so i can put it to acces only for me and the other helping owners.

2. i use HNS most of the times the plugin name is "hnswarmingedit.amxx" it's exolents' but i sometimes need to add "blockspub.amxx" or "hnsdm.amxx + Map_Spawns_Editor.amxx" is there a way for admins to do that in game without connecting to ftp? i know there are some plugins for that but i need something simple bcuz i already made a mess on the server and it's kinda laggy.

3. is there a plugin that can tell u which plugins make lag or are not workin too well? i need 1 if it's something u can have :D

4. amx_ask , a plugin that would bring a hud for each players with all the maps from the maps.ini and they would choose their favorite map , and when the vote finishes the most voted 3 maps to come up , and admins know what to vote for the nextmap


5. i have this Lastman plugin i don't know if it's laggy but the messages are kinda fast and to small to be read can somebody make it way better for 2011?

6.i need a plugin with the cvar: amx_helper 1/2/3/4/5/6/7/8(number of admins to go spec) and that cvar will automatly put the lower admin in flags , spec so he would do his job as an admin not a player

7. i think this would be the best vote plugin ever, i need a autovote message at the end of the map , for players to vote the admins that were on that current map , and would have to vote the admin's performances , and save it to a log each map, so when i check it on ftp in logs, i would know which is the best admin , and which not :) according to players. 2 mins before the end of the map.

8. i would like a plugin like frostnade, but on he grenade, for cts&ts that would make the slap efect but a little bigger but not too much, at the limit so it would move the enemy but no hp lost.

9. and if it's possible an amx_mute player , that make an player unbind y and u and doesn't let him use say say_team or messagemode in console and if amx_mute player 2xtimes would undo 1rst command :D

10.like i said i have like 60 admins+slots is there a way to limit commands per map? i mean if there are 10 admins on the server and each one uses 1 amx_slay 1 amx_slap it would be like 20 commands , can a private message come up and say "Admins commands reach to a limit 30 commands, try again on the next map" and that couldn't change on reconnect/retry.

11.a admin limiter commands for each admin , per day, that means only 30-50 commands per day for each admin , and every rang would have a cvar for me to chose the number of commands, like 30 gags , 20 slays , 60 bans, or something like that

12.u know this magic market plugin, i have it , but , i share it with other admins , can somebody make it so it's called +trip , and would be only this 2 colours LIME AND LIGHT YELLOW? both together so only i can use it? i really would love that. For getting high :Dd

PS: i really need a help on this , i know i made a mess out of this post, but the help i get it's for my hns players , not for my lan server with my bots :P thanks

wrecked_ 07-28-2011 01:59

Re: [REQ]Custom Plugins!
 
#12:

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <xs>

#define PLUGIN "Magic Marker"
#define VERSION "3.1"
#define AUTHOR "stupok69"

#define MAX_PLAYERS 32
#define USAGE_LEVEL ADMIN_KICK

new Float:origin[MAX_PLAYERS+1][3]
new 
prethink_counter[MAX_PLAYERS+1]
new 
bool:is_drawing[MAX_PLAYERS+1]
new 
bool:is_holding[MAX_PLAYERS+1]

new 
spriteid

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("+paint""paint_handler"USAGE_LEVEL"Paint on the walls!")
    
register_clcmd("-paint""paint_handler"USAGE_LEVEL"Paint on the walls!")
    
register_forward(FM_PlayerPreThink"forward_FM_PlayerPreThink"0)
}

public 
plugin_precache()
{
    
spriteid precache_model("sprites/lgtning.spr")
}

public 
paint_handler(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
PLUGIN_HANDLED
    
    
if(!is_user_alive(id))
    {
        
client_print(idprint_chat"* You cannot use the magic marker when you are dead.")
        return 
PLUGIN_HANDLED
    
}
    
    static 
cmd[2]
    
read_argv(0cmd1)
    
    switch(
cmd[0])
    {
        case 
'+'is_drawing[id] = true
        
case '-'is_drawing[id] = false
    
}
    return 
PLUGIN_HANDLED
}

public 
forward_FM_PlayerPreThink(id)
{
    if(
prethink_counter[id]++ > 5)
    {
        if(
is_drawing[id] && !is_aiming_at_sky(id))
        {
            static 
Float:cur_origin[3], Float:distance

            cur_origin 
origin[id]
            
            if(!
is_holding[id])
            {
                
fm_get_aim_origin(idorigin[id])
                
move_toward_client(idorigin[id])
                
is_holding[id] = true
                
return FMRES_IGNORED
            
}
            
            
fm_get_aim_origin(idorigin[id])
            
move_toward_client(idorigin[id])
            
            
distance get_distance_f(origin[id], cur_origin)
            
            if(
distance 2)
            {
                
draw_line(origin[id], cur_origin)
            }
        }
        else
        {
            
is_holding[id] = false
        
}
        
prethink_counter[id] = 0
    
}
    
    return 
FMRES_IGNORED
}

stock draw_line(Float:origin1[3], Float:origin2[3])
{
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
engfunc(EngFunc_WriteCoordorigin1[0])
    
engfunc(EngFunc_WriteCoordorigin1[1])
    
engfunc(EngFunc_WriteCoordorigin1[2])
    
engfunc(EngFunc_WriteCoordorigin2[0])
    
engfunc(EngFunc_WriteCoordorigin2[1])
    
engfunc(EngFunc_WriteCoordorigin2[2])
    
write_short(spriteid)
    
write_byte(0)
    
write_byte(10)
    
write_byte(255)
    
write_byte(50)
    
write_byte(0)
    
write_byte(random(2) ? 255 191)
    
write_byte(255)
    
write_byte(0)
    
write_byte(255)
    
write_byte(0)
    
message_end()
}

//from fakemeta_util.inc
stock fm_get_aim_origin(indexFloat:origin[3])
{
    static 
Float:start[3], Float:view_ofs[3]
    
pev(indexpev_originstart)
    
pev(indexpev_view_ofsview_ofs)
    
xs_vec_add(startview_ofsstart)
    
    static 
Float:dest[3]
    
pev(indexpev_v_angledest)
    
engfunc(EngFunc_MakeVectorsdest)
    
global_get(glb_v_forwarddest)
    
xs_vec_mul_scalar(dest9999.0dest)
    
xs_vec_add(startdestdest)
    
    
engfunc(EngFunc_TraceLinestartdest0index0)
    
get_tr2(0TR_vecEndPosorigin)
    
    return 
1
}

stock move_toward_client(idFloat:origin[3])
{        
    static 
Float:player_origin[3]
    
    
pev(idpev_originplayer_origin)
    
    
origin[0] += (player_origin[0] > origin[0]) ? 1.0 : -1.0
    origin
[1] += (player_origin[1] > origin[1]) ? 1.0 : -1.0
    origin
[2] += (player_origin[2] > origin[2]) ? 1.0 : -1.0
}
//Thanks AdaskoMX!
bool:is_aiming_at_sky(index)
{
    new 
Float:origin[3];
    
fm_get_aim_origin(indexorigin);

    return 
engfunc(EngFunc_PointContentsorigin) == CONTENTS_SKY;



PaTrick C. 07-28-2011 08:19

Re: [REQ]Custom Plugins!
 
12# iz done , i changed in .sma +paint with +trip , and works perfect both , thanks a lot , really appriciate all the help i get , and not just me other 200+ users on my serv thanks, 11 to go :Dddddd

joshknifer 07-28-2011 11:55

Re: [REQ]Custom Plugins!
 
9 is a slow hack, but if you use amx_llama it effectively does the same thing.

PaTrick C. 07-28-2011 13:47

Re: [REQ]Custom Plugins!
 
how the F i didn't think about that , yes ur right sir , thanks for the suggestion, 12/9 done thanks both, 10 more :Dddd

razieljohn619 07-29-2011 07:42

Re: [REQ]Custom Plugins!
 
Quote:

Originally Posted by joshknifer (Post 1520460)
9 is a slow hack, but if you use amx_llama it effectively does the same thing.

how about just block the say_team and say and if they press it a message will show and said that ur not allowed to chat or something :D

PaTrick C. 07-31-2011 02:25

Re: [REQ]Custom Plugins!
 
Llama is very good , any more help ? :Dddd

PaTrick C. 09-16-2011 15:39

Re: [REQ]Custom Plugins!
 
please?

PaTrick C. 12-03-2011 05:45

Re: [REQ]Custom Plugins!
 
i'm still lookin for some help , please


All times are GMT -4. The time now is 13:52.

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