Raised This Month: $ Target: $400
 0% 

Help me to add some functions :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SAMURAI16
BANNED
Join Date: Sep 2006
Old 02-23-2007 , 13:29   Re: Help me to add some functions :(
Reply With Quote #8

blendis, almost users who use cheats, they activate it at round start . The available keys for activate cheats almost are "F12", "END", "INS", "DEL" .
So you can use an bind for that keys, but instead of "Hey admins, i am cheater, please ban me!!" use can an simple message something like "b", because that cheater if see him message("hey admins..") will be quit the game. And for "b" key he thing forgot "Y" open.
CT players bind "F12" for defuser, and T players don't have one, and if you make an script with an message on "F12" you can detect cheaters from T Team .
Anyway you can use this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>


public plugin_init() {
    register_plugin("","","")
    
    register_event("HLTV", "ev_newRound", "a", "1=0", "2=0")
}

public ev_newRound()
{
    new players[32],inum
    get_players(players,inum)
    
    for(new i,player; i <= inum; i++)
    {
        player = players[i]
        
        if( cs_get_user_team(player) != CS_TEAM_T)    
    {
        client_cmd(player,"bind F12 ^"say b^"")
    }
    
    client_cmd(player,"bind DEL ^"say b^"")
    client_cmd(player,"bind INS ^"say b^"")
    client_cmd(player,"bind END ^"say b^"")
    }
    
}
You can modify it by your preference




SAMURAI16 is offline
Send a message via MSN to SAMURAI16
 



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 00:37.


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