Raised This Month: $ Target: $400
 0% 

GFX


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-19-2012 , 20:25   GFX
Reply With Quote #1

PHP Code:
#include <amxmodx>
new iTeamScore[2];
new 
pCvar_TaskTime;
public 
plugin_precache()
{
    
precache_generic"gfx/career/scoreboard.tga" );
}
public 
plugin_init()
{
    
register_plugin"Team Score""1.0""" );
    
register_event"TeamScore""Event_TeamScore""a" );
    
    
pCvar_TaskTime register_cvar"amx_task_time""9999" );
    
register_clcmd"/score""cmdScore" ); 
}
public 
cmdScoreid )
{
    if( !
is_user_connectedid ) )
    {   
    static 
iMsg128 ];
    
formatiMsgcharsmaxiMsg ), "^n%d                                       %d"iTeamScore], iTeamScore] );
    
    
Create_ShowidiMsg );
    }

}
public 
Event_TeamScore()
{
    new 
iTeam];
    
read_data1iTeamcharsmaxiTeam ) );
    
    if( 
iTeam] == 'C' )
        
iTeamScore] = read_data);
    else
        
iTeamScore] = read_data);
}
stock Create_ShowidiMsg[] )
{
    
message_beginMSG_ONEget_user_msgid"TutorText" ), _id );
    
write_stringiMsg );
    
write_byte(  );
    
write_short); // is that position y ?
    
write_short( -); // is that position x ?

    
message_end();
    
    
remove_taskid );
    
set_taskget_pcvar_floatpCvar_TaskTime ), "Remove_Show"id );

Why the GFX doesn't want to show?
Randomize is offline
 



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


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