AlliedModders

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

Randomize 05-19-2012 20:25

GFX
 
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?

<VeCo> 05-20-2012 06:46

Re: GFX
 
AFAIK, that works only for CZ.

Randomize 05-20-2012 06:50

Re: GFX
 
all the code?


All times are GMT -4. The time now is 00:21.

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