View Single Post
yura097
Junior Member
Join Date: Sep 2009
Location: Russia, Yekaterinburg
Old 04-14-2010 , 11:08   Re: surf_ski_2: Rules Watcher by xPaw
Reply With Quote #27

How I can add zones for other maps?

I writed this cod (change in sma) to


Code:
  get_mapname( szMap, 13 );
    
    if( equali( szMap, "surf_machine2" ) ) {
        CreateTrigger( JAIL, Float:{ 3297.2, -308.6, 2113.0 }, Float:{ 3521.9, 289.0, 2298.8 } );
        CreateTrigger( GUNROOM, Float:{ -2443.0, -907.8, -1501.0 }, Float:{ -3375.3, -3611.0, -431.3 } );
        CreateTrigger( MARIOROOM, Float:{ -2545.9, -2467.4, -587.2 }, Float:{ -2278.2, -2688.7, -828.3 } );
        
        register_touch( g_szClassname, "player", "FwdTriggerTouch" );
        RegisterHam( Ham_Spawn,        "player", "FwdHamPlayerSpawn", 1 );
        RegisterHam( Ham_TakeDamage,   "player", "FwdHamTakeDamage" );
        RegisterHam( Ham_TraceAttack,  "player", "FwdHamTraceAttack" );
        
        register_event( "HLTV", "EventNewRound", "a", "1=0", "2=0" );
        
        CacheCvars( );
    }
but it doesn't work, zones doesn't creat

Where I must change some thing for take this?


Xpaw, Can You create new version with menu.

In this new menu admin must can create zones in game!

It wil be real cool!
yura097 is offline
Send a message via ICQ to yura097