Raised This Month: $56 Target: $400
 14% 

Search this this code.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maj. Stoyan
Member
Join Date: Jul 2014
Old 08-01-2014 , 06:20   Search this this code.
Reply With Quote #1

Hello, i search code for this ammo in hud >> http://prikachi.com/images/205/7508205h.jpg


And search this count Down >
http://prikachi.com/images/207/7508207g.jpg
Maj. Stoyan is offline
Egan
Senior Member
Join Date: May 2013
Location: pluto
Old 08-01-2014 , 06:34   Re: Search this this code.
Reply With Quote #2

this should work
https://forums.alliedmods.net/showpo...12&postcount=7

and the ammo hud or whatever edit your zombieplague.sma or zp50_hud_info.sma
X:0.29
Y:0.80
__________________
Egan is offline
Maj. Stoyan
Member
Join Date: Jul 2014
Old 08-01-2014 , 07:44   Re: Search this this code.
Reply With Quote #3

Okay, i have one problem with countdown - See what i mean . .http://prikachi.com/images/420/7508420D.jpg


This is code from cound down:

Code:
#include < amxmodx >
#include < amxmisc >

#pragma semicolon 1

#define MAX_SECONDS    15

enum _: iRGB
{
    r,
    g,
    b
};

enum ( += 1337 )
{
    TASK_ONE,
    TASK_TWO
};

new const gHudColors[ MAX_SECONDS ][ iRGB ] =
{
    { 192, 0, 1 },
    { 236, 0, 2 },
    { 255, 11, 0 },
    { 255, 32, 0 },
    { 255, 55, 0 },
    { 255, 114, 0 },
    { 255, 150, 0 },
    { 255, 207, 0 },
    { 255, 238, 0 },
    { 194, 232, 47 },    
    { 131, 189, 96 },
    { 70, 160, 141 },
    { 32, 136, 168 },
    { 6, 118, 183 },
    { 5, 83, 154 },
    { 255, 255, 255 }
};

new const gSoundsSpeak[ MAX_SECONDS ][ ] =
{
     "ZSympathy/cdown/biohazard_detected.wav",
     "ZSympathy/cdown/one.wav", 
     "ZSympathy/cdown/two.wav", 
     "ZSympathy/cdown/three.wav", 
     "ZSympathy/cdown/four.wav", 
     "ZSympathy/cdown/five.wav", 
     "ZSympathy/cdown/six.wav", 
     "ZSympathy/cdown/seven.wav", 
     "ZSympathy/cdown/eight.wav",      
     "ZSympathy/cdown/nine.wav",
     "ZSympathy/cdown/ten.wav",
     "ZSympathy/cdown/eleven.wav",
     "ZSympathy/cdown/twelve.wav",
     "ZSympathy/cdown/thirteen.wav",
     "ZSympathy/cdown/fourteen.wav",
     "ZSympathy/cdown/fifteen.wav"
};

new gCountTimer;
new gHudSync;

public plugin_init( )
{
    register_plugin( "", "", "" );
    
    register_logevent( "LOGRoundStart", 2, "1=Round_Start" );
    
    gHudSync = CreateHudSyncObj( );
}

public plugin_precache( )
{
    new i;
    for( i = 0; i < MAX_SECONDS; i++ )
    {
        precache_sound( gSoundsSpeak[ i ] );
    }
}

public LOGRoundStart( )
{
    remove_task( TASK_ONE );
    remove_task( TASK_TWO );
    
    set_task( float( MAX_SECONDS ), "RemoveTimerHUD", TASK_ONE, _, _, "b" );
    set_task( 1.0, "ShowCountTimer", TASK_TWO, _, _, "a", MAX_SECONDS );
}

public ShowCountTimer( )
{
    gCountTimer++;
    
    new iTimer = MAX_SECONDS - gCountTimer;
    
    set_hudmessage( gHudColors[ iTimer ][ r ], gHudColors[ iTimer ][ g ], gHudColors[ iTimer ][ b ], -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 1 ); 
    ShowSyncHudMsg( 0, gHudSync, "", iTimer );
    
    if( iTimer <= MAX_SECONDS )
    {
        new szNumToWord[ 60 ];
        num_to_word( iTimer, szNumToWord, charsmax( szNumToWord ) );
        
        client_cmd( 0, "speak ^"ZSympathy/cdown/%s^"", szNumToWord );
    }
}

public RemoveTimerHUD( )
{
    remove_task( TASK_ONE );
    remove_task( TASK_TWO );
    
    gCountTimer = 0;
}

And in - data/lang/zp_countdown_remix.txt:

Code:
[en]
COUNTDOWN_MSG = Infection on %d

Can you help me ..?
Maj. Stoyan is offline
Egan
Senior Member
Join Date: May 2013
Location: pluto
Old 08-01-2014 , 09:15   Re: Search this this code.
Reply With Quote #4

what... why do you need a lang file ?

and this...
Code:
ShowSyncHudMsg( 0, gHudSync, "", iTimer );
shouldn't it be
Code:
ShowSyncHudMsg( 0, gHudSync, "Infection on %d", iTimer );
STOP USING 2 PLUGINS FOR THE SAME PURPOSE
disable zp_countdown_remix.amxx
__________________

Last edited by Egan; 08-01-2014 at 09:21.
Egan is offline
Maj. Stoyan
Member
Join Date: Jul 2014
Old 08-01-2014 , 09:20   Re: Search this this code.
Reply With Quote #5

No, no .. look this post ..

https://forums.alliedmods.net/showpo...8&postcount=16
Maj. Stoyan is offline
Egan
Senior Member
Join Date: May 2013
Location: pluto
Old 08-01-2014 , 09:35   Re: Search this this code.
Reply With Quote #6

Quote:
Originally Posted by Maj. Stoyan View Post
hmm let me check ah as i told you it wasn't the plugins fault i checked the sma before i posted and it isn't using any lang files...

since im still new i tested it on my test server

http://steamcommunity.com/id/killaHi...96237360065170

in the end the error is coming from

this plugin "zp_countdown_remix.amxx" the author did say that that "The multi-language support is untested"

so why dont you try this
https://forums.alliedmods.net/showpo...1&postcount=70
__________________

Last edited by Egan; 08-01-2014 at 09:37.
Egan is offline
Maj. Stoyan
Member
Join Date: Jul 2014
Old 08-01-2014 , 09:51   Re: Search this this code.
Reply With Quote #7

Download the demo and look, told you ..
http://84.238.240.55/testbgtest.rar

But I want a big counter, just like the one in the picture is not small.

Last edited by Maj. Stoyan; 08-01-2014 at 09:54.
Maj. Stoyan is offline
Egan
Senior Member
Join Date: May 2013
Location: pluto
Old 08-01-2014 , 09:56   Re: Search this this code.
Reply With Quote #8

Quote:
Originally Posted by Maj. Stoyan View Post
Download the demo and look, told you ..
http://84.238.240.55/testbgtest.rar

But I want a big counter, just like the one in the picture is not small.
you expect me to view the demo without the resources ?
__________________
Egan is offline
Maj. Stoyan
Member
Join Date: Jul 2014
Old 08-01-2014 , 10:07   Re: Search this this code.
Reply With Quote #9

resources?

that?

Code:
#include < amxmodx >
#include < amxmisc >

#pragma semicolon 1

#define MAX_SECONDS    16

enum _: iRGB
{
    r,
    g,
    b
};

enum ( += 1337 )
{
    TASK_ONE,
    TASK_TWO
};

new const gHudColors[ MAX_SECONDS ][ iRGB ] =
{
    { 192, 0, 1 },
    { 236, 0, 2 },
    { 255, 11, 0 },
    { 255, 32, 0 },
    { 255, 55, 0 },
    { 255, 114, 0 },
    { 255, 150, 0 },
    { 255, 207, 0 },
    { 255, 238, 0 },
    { 194, 232, 47 },    
    { 131, 189, 96 },
    { 70, 160, 141 },
    { 32, 136, 168 },
    { 6, 118, 183 },
    { 5, 83, 154 },
    { 255, 255, 255 }
};

new const gSoundsSpeak[ MAX_SECONDS ][ ] =
{
         "ZSympathy/cdown/biohazard_detected.wav",
     "ZSympathy/cdown/one.wav", 
     "ZSympathy/cdown/two.wav", 
     "ZSympathy/cdown/three.wav", 
     "ZSympathy/cdown/four.wav", 
     "ZSympathy/cdown/five.wav", 
     "ZSympathy/cdown/six.wav", 
     "ZSympathy/cdown/seven.wav", 
     "ZSympathy/cdown/eight.wav",      
     "ZSympathy/cdown/nine.wav",
     "ZSympathy/cdown/ten.wav",
     "ZSympathy/cdown/eleven.wav",
     "ZSympathy/cdown/twelve.wav",
     "ZSympathy/cdown/thirteen.wav",
     "ZSympathy/cdown/fourteen.wav",
     "ZSympathy/cdown/fifteen.wav"
};

new gCountTimer;
new gHudSync;

public plugin_init( )
{
    register_plugin( "", "", "" );
    
    register_logevent( "LOGRoundStart", 2, "1=Round_Start" );
    
    gHudSync = CreateHudSyncObj( );
}

public plugin_precache( )
{
    new i;
    for( i = 0; i < MAX_SECONDS; i++ )
    {
        precache_sound( gSoundsSpeak[ i ] );
    }
}

public LOGRoundStart( )
{
    remove_task( TASK_ONE );
    remove_task( TASK_TWO );
    
    set_task( float( MAX_SECONDS ), "RemoveTimerHUD", TASK_ONE, _, _, "b" );
    set_task( 1.0, "ShowCountTimer", TASK_TWO, _, _, "a", MAX_SECONDS );
}

public ShowCountTimer( )
{
    gCountTimer++;
    
    new iTimer = MAX_SECONDS - gCountTimer;
    
    set_hudmessage( gHudColors[ iTimer ][ r ], gHudColors[ iTimer ][ g ], gHudColors[ iTimer ][ b ], -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 1 ); 
    ShowSyncHudMsg( 0, gHudSync, "*** Infection on %d ***", iTimer );
    
    if( iTimer <= MAX_SECONDS )
    {
        new szNumToWord[ 60 ];
        num_to_word( iTimer, szNumToWord, charsmax( szNumToWord ) );
        
        client_cmd( 0, "speak ^"ZSympathy/cdown/%s^"", szNumToWord );
    }
}

public RemoveTimerHUD( )
{
    remove_task( TASK_ONE );
    remove_task( TASK_TWO );
    
    gCountTimer = 0;
}
Maj. Stoyan is offline
Egan
Senior Member
Join Date: May 2013
Location: pluto
Old 08-01-2014 , 10:23   Re: Search this this code.
Reply With Quote #10

whatever i renamed my models to whatever and viewed the demo... and the plugin is perfectly fine

could you please stop wasting my time ?

http://steamcommunity.com/id/killaHi...96237361070552
__________________
Egan is offline
Reply


Thread Tools
Display Modes

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


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