Raised This Month: $ Target: $400
 0% 

End round .tga


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 09-24-2010 , 07:04   Re: End round .tga
Reply With Quote #11

Bump what? Post #6 has plugin which works
__________________
xPaw is offline
am_amx
Senior Member
Join Date: Jul 2010
Location: here
Old 09-24-2010 , 13:51   Re: End round .tga
Reply With Quote #12

Quote:
Originally Posted by xPaw View Post
Bump what? Post #6 has plugin which works
but i need it for normal game
am_amx is offline
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 09-24-2010 , 15:28   Re: End round .tga
Reply With Quote #13

Yup, can someone make it for normal servers?To write Terrorists win! and Counter-Terrorists win! Please someone try to make it
dreamedward is offline
am_amx
Senior Member
Join Date: Jul 2010
Location: here
Old 10-15-2010 , 08:44   Re: End round .tga
Reply With Quote #14

bump

Last edited by YamiKaitou; 10-15-2010 at 12:57. Reason: removing unneeded image
am_amx is offline
krededk99
Senior Member
Join Date: Nov 2007
Old 10-27-2010 , 10:11   Re: End round .tga
Reply With Quote #15

Bump! Awesome idea
krededk99 is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-27-2010 , 10:33   Re: End round .tga
Reply With Quote #16

I liked that idea! It would be awesome!!
GalegO is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-27-2010 , 11:37   Re: End round .tga
Reply With Quote #17

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <cstrike>

new Hands[33], MaxPlayers

//normal pictures
new TEModelNorm[] = "models/zombie_plague/zombie_win.mdl"
new CTModelNorm[] = "models/zombie_plague/human_win.mdl"

//flipped pictures
new TEModelFlip[] = "models/zombie_plague/zombie_win-f.mdl"
new CTModelFlip[] = "models/zombie_plague/human_win-f.mdl"

new bool:TEWin
new bool:CTWin

public plugin_init()
{
    
register_plugin("New win messages""1.2""Jelle")
    
    
register_event("HLTV""EventRoundStart""a""1=0""2=0" )
    
register_event("CurWeapon""EventCurWeapon""be""1=1")
    
register_event("SendAudio""tr_win""a""2&%!MRAD_terwin")
    
register_event("SendAudio""ct_win""a""2&%!MRAD_ctwin")
    
    
MaxPlayers get_maxplayers()
}

public 
plugin_precache()
{
    
precache_model(TEModelNorm)
    
precache_model(CTModelNorm)
    
precache_model(TEModelFlip)
    
precache_model(CTModelFlip)
}

public 
client_putinserver(id)
{
    if ( !
is_user_bot(id) )
    {
        
query_client_cvar(id "cl_righthand" "Hands_CVAR_Value")
    }
}

public 
Hands_CVAR_Value(id, const cvar[], const value[])
{
    if ( 
<= id <= MaxPlayers )
    {
        
Hands[id] = str_to_num(value)
    }
}

public 
client_disconnect(id)
{
    
Hands[id] = 0
}

public 
tr_win()
{
    
TEWin true
    CTWin 
false
    
    
new players[32], iNum
    get_players
(playersiNum"ch")
    
    for ( new 
iiNumi++ )
    {
        
client_cmd(players[i], "cl_righthand ^"1^"")
        
        if ( 
get_user_weapon(players[i]) != CSW_KNIFE )
        {
            
set_pev(players[i], pev_viewmodel2TEModelFlip)
        }
        
        else
        {
            
set_pev(players[i], pev_viewmodel2TEModelNorm)
        }
    }
}

public 
ct_win()
{
    
TEWin false
    CTWin 
true
    
    
new players[32], iNum
    get_players
(playersiNum"ch")
    
    for ( new 
iiNumi++ )
    {
        
client_cmd(players[i], "cl_righthand ^"1^"")
        
        if ( 
get_user_weapon(players[i]) != CSW_KNIFE )
        {
            
set_pev(players[i], pev_viewmodel2CTModelFlip)
        }
        
        else
        {
            
set_pev(players[i], pev_viewmodel2CTModelNorm)
        }
    }
}

public 
EventRoundStart()
{
    
CTWin false
    TEWin 
false
    
    
for ( new 1<= MaxPlayersi++ )
    {
        if ( !
is_user_connected(i) ) continue
        
        
client_cmd(i"cl_righthand ^"%d^""Hands[i])
    }
}

public 
EventCurWeapon(const id)
{
    if ( 
TEWin )
    {
        
client_cmd(id"cl_righthand ^"1^"")
        
        if ( 
get_user_weapon(id) != CSW_KNIFE )
        {
            
set_pev(idpev_viewmodel2TEModelFlip)
        }
        
        else
        {
            
set_pev(idpev_viewmodel2TEModelNorm)
        }
    }
    
    else if ( 
CTWin )
    {
        
client_cmd(id"cl_righthand ^"1^"")
        
        if ( 
get_user_weapon(id) != CSW_KNIFE )
        {
            
set_pev(idpev_viewmodel2CTModelFlip)
        }
        
        else
        {
            
set_pev(idpev_viewmodel2CTModelNorm)
        }
    }

Untested. It uses the pictures from zombie plauge. You can edit it to use others, or just name the pictures you want to the name it has in zombie mod and it will show that instead.

There is a few things in it which I am not quite sure of, so it might have a few bugs, so try it and see what happens.
__________________
No idea what to write here...

Last edited by Jelle; 10-29-2010 at 02:53.
Jelle is offline
Send a message via MSN to Jelle
Old 10-27-2010, 12:11
Jelle
This message has been deleted by Jelle. Reason: lagz
krededk99
Senior Member
Join Date: Nov 2007
Old 10-27-2010 , 12:12   Re: End round .tga
Reply With Quote #18

Wel.. the plugin runs, it preloads the files.. but nothing happends when either T or CT wins.. just the usual "X team wins"

Thanks for making an effort though, hope you can get it to work!

Last edited by krededk99; 10-27-2010 at 12:27.
krededk99 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-27-2010 , 13:06   Re: End round .tga
Reply With Quote #19

Quote:
Originally Posted by krededk99 View Post
Bump! Awesome idea
Don't bump until 2 weeks have passed since last post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 10-27-2010 , 15:50   Re: End round .tga
Reply With Quote #20

Quote:
Originally Posted by krededk99 View Post
Wel.. the plugin runs, it preloads the files.. but nothing happends when either T or CT wins.. just the usual "X team wins"

Thanks for making an effort though, hope you can get it to work!
Depends. I really don't know what is wrong with it. It should print an error message in the server console.

Quote:
Originally Posted by Exolent[jNr] View Post
Don't bump until 2 weeks have passed since last post.
Can you look at my code quick? Maybe I register the event wrong?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Reply



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


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