Raised This Month: $ Target: $400
 0% 

Automatic slay when write /kill HELP


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrMaCEEE
Senior Member
Join Date: Apr 2010
Location: PortugaL
Old 07-27-2010 , 08:36   Automatic slay when write /kill HELP
Reply With Quote #1

Hi, when the player write /kill on round end or when all the team die this player die too.
eg: I write /kill - i have godmode and when round end i got slay automatic or when all the terrorist team die i got slay too

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <amxmisc>
#include <fun>
new g_ExecCmds[][] =
{
        
"amxx unpause killmeonend.amxx",
        
"amxx pause notkill.amxx"
};
 
public 
plugin_init()
{
 
register_plugin("Kill Me On End","1.0","MACE")
 
register_clcmd("say /kill","HandleReady")
 
register_logevent("RoundStart"2"1=Round_Start");
}
public 
HandleReady(id)
{
 
 if(
cs_get_user_teamid ) == CS_TEAM_T) {
                new 
target_name[32]
  
client_print(id,print_chat,"[ARENA] When round end you got slay.")
  
set_user_godmode(id,1)
 
  
get_user_name(id,target_name,31)
  
client_print(0,print_chat,"[ARENA] %s sera morto automaticamente no final da ronda.",target_name)
  
server_cmd"amxx unpause notkill.amxx" )
  
set_user_rendering(id,kRenderFxGlowShell,255,0,0,kRenderNormal,25)
  
server_cmd"amxx pause killmeonend.amxx" )
 
 }else{
  
client_print(id,print_chat,"[ARENA] Only terrorist team can use this command.")
 }
 
}
 
public 
RoundStart()
        for (new 
Cmd 0Cmd sizeof(g_ExecCmds); Cmd++)
                
server_cmd(g_ExecCmds[Cmd]); 
Sorry for my bad english
__________________

#include ++ by MACE
MrMaCEEE is offline
Send a message via MSN to MrMaCEEE
 



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:07.


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