AlliedModders

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

made.tn 11-25-2011 13:22

Help me
 
thanks for all who's help me to this script:

PHP Code:

#include <amxmodx> 
#include <hamsandwich> 
#include <fakemeta> 

public plugin_init() 
    
RegisterHam(Ham_Killed"player""PlayerKilledPost"1

public 
PlayerKilledPost(victimattackershouldgib

    if(!
is_user_connected(attacker)) 
        return; 

    if(
victim == attacker
        return; 

    if(
get_pdata_int(victim75) != HIT_HEAD
        return; 

    
set_hudmessage(2001000, -1.00.3003.03.00.150.151
    
show_hudmessage(attacker"::HEADSHOT::"


and this script:

PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Hudhead"
#define VERSION "1.0"
#define AUTHOR "made.tn"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg""eDeath""a""1>0""2>0""3=1")
}

public 
eDeath(id)
{
      new 
attacker read_data)
      
      if( 
read_data) )
      {
            
set_hudmessage(25500, -1.00.3503.01.21.31.44)
            
show_hudmessage(attacker"Headshot!")
      }


now I'd like to help me to creat this plugin:
if the round is end this hud message was showed

set_hudmessage(255, 0, 0, -1.0, 0.35, 0, 3.0, 1.2, 1.3, 1.4, 4)
show_hudmessage(id, "the round is end")

and thanks

kramesa 11-25-2011 13:29

Re: Help me
 
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_logevent("RoundEnd",2,"1=Round_End"
}

public 
RoundEnd()
{
    
set_hudmessage(25500, -1.00.3503.01.21.31.44)
    
show_hudmessage(id"the round is end")



fl0werD 11-25-2011 13:30

Re: Help me
 
Quote:

Originally Posted by kramesa (Post 1602473)
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_logevent("RoundEnd",2,"1=Round_End"
}

public 
RoundEnd(id)
{
    
set_hudmessage(25500, -1.00.3503.01.21.31.44)
    
show_hudmessage(id"the round is end")



PHP Code:

#include <amxmodx>

public plugin_init()
{
    
register_logevent("RoundEnd",2,"1=Round_End"
}

public 
RoundEnd() // id - no. This is global event.
{
    
set_hudmessage(25500, -1.00.3503.01.21.31.44)
    
show_hudmessage(0"the round is end")



kramesa 11-25-2011 13:33

Re: Help me
 
Quote:

Originally Posted by fl0werD (Post 1602474)
PHP Code:

#include <amxmodx>

public plugin_init()
{
    
register_logevent("RoundEnd",2,"1=Round_End"
}

public 
RoundEnd() // id - no. This is global event.
{
    
set_hudmessage(25500, -1.00.3503.01.21.31.44)
    
show_hudmessage(0"the round is end")



Sorry, i used a script semi-make.

made.tn 11-25-2011 13:33

Re: Help me
 
thanks all

fl0werD 11-25-2011 14:07

Re: Help me
 
Quote:

Originally Posted by kramesa (Post 1602477)
Sorry, i used a script semi-make.

Sorry?? For what?


All times are GMT -4. The time now is 08:24.

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