AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   End round .tga (https://forums.alliedmods.net/showthread.php?t=137955)

dreamedward 09-11-2010 12:02

End round .tga
 
Hey guys i'm looking for a plugin at the end of the round to show .tgas like this
But i dont want it for ZP i want to be like Terrorists Win, Counter-Terrorists Win
- [IMG]http://img843.**************/img843/1486/hl2010091118300755.png[/IMG]

mottzi 09-11-2010 13:04

Re: End round .tga
 
give this ZM plugin. ill see what i can do..

dreamedward 09-11-2010 13:17

Re: End round .tga
 
Well i dont have it but i think its made for ZM so i hope someone has it and can make it for normal servers.

Welgericht 09-11-2010 13:40

Re: End round .tga
 
This picture is knife model.

dreamedward 09-11-2010 13:47

Re: End round .tga
 
Nope i dont think so it downloaded me .tga models befor i get into the server but didnt download any mdl files.

Welgericht 09-11-2010 13:50

Re: End round .tga
 
PHP Code:

/*
    [ZP] New Win Messages

    Plugin by Shidla [SGC] & xPaw & 93()|29!/<
    
    Idea & models:
    Koshak        | ICQ: 283-361-228    (zombie-mod.ru)

    Credits:
    xPaw                                    (Main code... My was worse... But it worked too :))
    93()|29!/<    | SkyPE: georgik_braila     (Bug fixing)
                | Yahoo Messenger: george_stafie
    MeRcyLeZZ                                (For his Zombie Plague)
    CHyCMyMpNk    | ICQ: 4-888-617            (forum.hlds.us)
    Fedcomp        | ICQ: 536020                (gm-community.net / forum.hlds.us / amx-x.ru / gscom.org)
    PomanoB        | ICQ: 147-919                (gm-community.net / forum.hlds.us / amx-x.ru)
    DJ_WEST        | ICQ: 634-866                 (For his amx-x.ru & reallite.cs2.ru)
    meTaLiCroSS                                (For something, what ever... I know him - we steal something: his idea\code\constant\crap\brain\blablabla :))



    Shidla [SGC] | 2010 | ICQ: 312-298-513
    
    1.3 [Final Version]

    http://forums.alliedmods.net/showthread.php?t=128385        // Eng
    http://forum.hlds.us/showthread.php?p=84425                    // Rus
*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

new Hands[33], MaxPlayers

new const MODELS[3][] =
{
    
"",
    
"models/zombie_plague/zombie_win.mdl",
    
"models/zombie_plague/human_win.mdl"
};

new const 
MODELS_FLIP[3][] =
{
    
"",
    
"models/zombie_plague/zombie_win-f.mdl",
    
"models/zombie_plague/human_win-f.mdl"
};


new 
g_iModelIndex[3], g_iWinTeamg_iModelIndexFlip[3];

public 
plugin_init()
{
    
register_plugin("[ZP] Sub-Plugin: New Win Messages""1.3""Shidla, xPaw, 93()|29!/<" );
    
register_event("HLTV""EventRoundStart""a""1=0""2=0" );
    
register_event("CurWeapon""EventCurWeapon""be""1=1");

    
MaxPlayers get_maxplayers();

    
register_cvar("Shidla""[ZP] New Win Messages v.1.3"FCVAR_SERVER|FCVAR_SPONLY);
    
register_cvar("zp_new_win_messages""[ZP] New Win Messages v.1.3"FCVAR_SERVER|FCVAR_SPONLY);
}

public 
plugin_precache()
{
    for (new 
WIN_ZOMBIES<= WIN_HUMANSi++)
    {
        
precache_model(MODELS[i]);
        
g_iModelIndex[i] = engfunc(EngFunc_AllocStringMODELS[i]);
        
precache_model(MODELS_FLIP[i]);
        
g_iModelIndexFlip[i] = engfunc(EngFunc_AllocStringMODELS_FLIP[i]);
    }
}

public 
client_connect(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)    // Bug Fix
        
Hands[id] = str_to_num(value)
}

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

public 
zp_round_ended(iTeam)
{
    if (
iTeam == WIN_NO_ONE)
        return;
    
g_iWinTeam iTeam;
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"ch");
    for (new 
iiNumi++)
    {
        
client_cmd(iPlayers[i], "cl_righthand ^"1^"");
        
zp_set_user_nightvision(iPlayers[i], 1);

        if (
get_user_weapon(iPlayers[i]) != CSW_KNIFE)
            
set_pev(iPlayers[i], pev_viewmodelg_iModelIndexFlip[iTeam]);
        else
            
set_pev(iPlayers[i], pev_viewmodelg_iModelIndex[iTeam]);
    }
}

public 
EventRoundStart()
{
    
g_iWinTeam WIN_NO_ONE;

    for (new 
1<= MaxPlayersi++)
    {
        if(!
is_user_connected(i))
            continue;        
// xPaw fix)))

        
client_cmd(i"cl_righthand ^"%d^""Hands[i]);
        
//client_print(i,print_chat,"[DEBUG] –ó–Ω–∞—á–µ–Ω–∏–µ –¥–∞–Ω–Ω—ã—Ö '%d'***", Hands[i]);
    
}
}

public 
EventCurWeapon(const id)
{
    if (
g_iWinTeam WIN_NO_ONE)
    {
        
client_cmd(id"cl_righthand ^"1^"");

        if (
get_user_weapon(id) != CSW_KNIFE)
            
set_pev(idpev_viewmodelg_iModelIndexFlip[g_iWinTeam]);
        else
            
set_pev(idpev_viewmodelg_iModelIndex[g_iWinTeam]);
    }
}

// Yes, baby, its's Russia! xDD
// Thanks for all, who help me))) 


dreamedward 09-11-2010 13:55

Re: End round .tga
 
Yup, that is exactly the one i needed but can someone make it for normal servers ?

avril-lavigne 09-11-2010 15:48

Re: End round .tga
 
Ill try

am_amx 09-12-2010 21:13

Re: End round .tga
 
thats a nice idea looking for it

edit : Ps make it sooon :p

am_amx 09-24-2010 06:16

Re: End round .tga
 
b
u
m
p
:cry::cry:


All times are GMT -4. The time now is 17:45.

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