Thread: Kz-Arg Mod 1.7
View Single Post
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 12-09-2008 , 16:09   Re: Kz-Arg Mod [Not Finish]
Reply With Quote #5

just had a quick look on this, this is what i found

-use Ham_Use for the timer + check the map for multiple start/stop buttons

PHP Code:
// unneccesarry

stock kz_float_to_float(Float:desde[3], Float:hasta[3])
{
    
hasta[0] = desde[0]
    
hasta[1] = desde[1]
    
hasta[2] = desde[2]
}

// can be easily done in amxx 1.8 through this which will copy dimension by dimension
hasta desde 
PHP Code:
// by connorr

stock fm_set_user_team(id, {CsTeams,_}:team, {CS_Internal_Models,_}:model CS_DONTCHANGE)
{
    switch(
team)
    {
        case 
CS_TEAM_Tset_pdata_int(id1141OFFSET_LINUX);
        case 
CS_TEAM_CTset_pdata_int(id1142OFFSET_LINUX);
        case 
CS_TEAM_SPECTATORset_pdata_int(id1143OFFSET_LINUX);
    }

    if(
model)
    {
        switch(
model)
        {
            case 
CS_CT_URBAN:set_pdata_int(id1261OFFSET_LINUX);
            case 
CS_T_TERROR:set_pdata_int(id1262OFFSET_LINUX);
            case 
CS_T_LEET:set_pdata_int(id1263OFFSET_LINUX);
            case 
CS_T_ARCTIC:set_pdata_int(id1264OFFSET_LINUX);
            case 
CS_CT_GSG9:set_pdata_int(id1265OFFSET_LINUX);
            case 
CS_CT_GIGN:set_pdata_int(id1266OFFSET_LINUX);
            case 
CS_CT_SAS:set_pdata_int(id1267OFFSET_LINUX);
            case 
CS_T_GUERILLA:set_pdata_int(id1268OFFSET_LINUX);
            case 
CS_CT_VIP:set_pdata_int(id1269OFFSET_LINUX);
            case 
CZ_T_MILITIA:set_pdata_int(id12610OFFSET_LINUX);
            case 
CZ_CT_SPETSNAZ:set_pdata_int(id12611OFFSET_LINUX);
        }
    }

    
dllfunc(DLLFunc_ClientUserInfoChangedid);

    new 
teaminfo[32];
    switch(
team)
    {
        case 
TEAM_UNASSIGNEDcopy(teaminfo31"UNASSIGNED")
        case 
TEAM_Tcopy(teaminfo31"TERRORIST")
        case 
TEAM_CTcopy(teaminfo31"CT")
        case 
TEAM_SPECTATORcopy(teaminfo31"SPECTATOR")
        
    }
    
    
message_begin(MSG_ALLg_teaminfo);
    
write_byte(id);
    
write_string(teaminfo);
    
message_end();

}

// ->

fm_cs_set_user_teamplr, { CsTeams}:team, { CsInternalModel}:model CsInternalModel:CS_DONTCHANGE )
{
    
/*if( team > CS_TEAM_SPECTATOR )
    {
        return 0;
    }*/
    
    
set_pdata_intplrOFFSET_TEAM_:team );

    if( 
model )
    {
        
set_pdata_intplrOFFSET_INTERNALMODEL_:model );
    }

    
dllfuncDLLFunc_ClientUserInfoChangedplrengfuncEngFunc_GetInfoKeyBufferplr ) );

    static const 
teams[] = { "UNASSIGNED""TERRORIST""CT""SPECTATOR" };

    
emessage_beginMSG_BROADCASTg_iMessageTeamInfo );
    
ewrite_byteplr );
    
ewrite_stringteams[_:team] );
    
emessage_end( );
    
    return 
1;

PHP Code:
global_get(glb_timeengine_time);

//rather use this since global_get() runs a lot more c++ code than get_gametime():
get_gametime() 
__________________

Last edited by SchlumPF*; 12-09-2008 at 16:28.
SchlumPF* is offline
Send a message via ICQ to SchlumPF*