Raised This Month: $51 Target: $400
 12% 

Soccer Jam v2.07a


Post New Thread Reply   
 
Thread Tools Display Modes
niFe
Senior Member
Join Date: Apr 2008
Location: Planet Green
Old 01-26-2010 , 03:00   Re: Soccer Jam v2.07a
Reply With Quote #591

Quote:
Originally Posted by renato127 View Post
can someone tell me all the sj commands, like sj_score and etc?

the agility of my server is bugging,the turbo isn't working fine
Have the sv_maxspeed "9999"

* sj_kick (default: 650) - Default Kicking Speed.
* sj_score (default: 15) - Scores needed to win a round.
* sj_reset (default: 30.0) - Ball reset time, to respawn at ball spawn location.
* sj_goalsafety (default: 650) - Distance around Mascot, that does damage to enemy.
* sj_random (default: 1) - Turns Team Randomizing ON/OFF.
__________________

Last edited by niFe; 02-01-2010 at 22:38.
niFe is offline
sjgunner
Junior Member
Join Date: May 2008
Location: Moscow
Old 01-26-2010 , 14:24   Re: Soccer Jam v2.07a
Reply With Quote #592

Quote:
Originally Posted by renato127 View Post
the agility of my server is bugging,the turbo isn't working fine
Try to set sv_maxspeed 999
__________________
sjgunner is offline
Send a message via ICQ to sjgunner
Alguemnn
Junior Member
Join Date: Nov 2008
Old 04-14-2010 , 15:02   Re: Soccer Jam v2.07a
Reply With Quote #593

There's no "3rd party plugins" for sj since it has been created?
Alguemnn is offline
jeremyjohn
BANNED
Join Date: Jun 2009
Location: Malaysia
Old 04-20-2010 , 08:09   Re: Soccer Jam v2.07a
Reply With Quote #594

Can this work on AMXX v1.8.1?
jeremyjohn is offline
Send a message via MSN to jeremyjohn
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 04-20-2010 , 14:21   Re: Soccer Jam v2.07a
Reply With Quote #595

Yes it works fine.
BeasT is offline
Send a message via Skype™ to BeasT
Krycek
Member
Join Date: Nov 2009
Old 04-30-2010 , 14:54   Re: Soccer Jam v2.07a
Reply With Quote #596

How can i fix this ?

PHP Code:
[AMXXDisplaying debug trace (plugin "soccerjam.amxx")
[
AMXXRun time error 4index out of bounds 
[AMXX]    [0soccerjam.sma::touchNet (line 1291
Here's the code:

PHP Code:
public touchNet(ballgoalpost)
{
    
remove_task(55555)

    new 
team get_user_team(ballowner)
    new 
goalent GoalEnt[team]
    if (
goalpost != goalent && ballowner 0) {
        new 
aname[64]
        new 
Float:netOrig[3]
        new 
netOrig2[3]

        
entity_get_vector(ballEV_VEC_origin,netOrig)
        new 
l
        
for(l=0;l<3;l++)
            
netOrig2[l] = floatround(netOrig[l])
        
flameWave(netOrig2)
        
get_user_name(ballowner,aname,63)
        new 
frags get_user_frags(ballowner)
        
entity_set_float(ballownerEV_FL_fragsfloat(frags 10))

        
play_wav(0SCORED_GOAL)

        
/////////////////////ASSIST CODE HERE///////////

        
new assisters[4] = { 000}
        new 
iassisters 0
        
new ilastplayer iassistteam ]

        
// We just need the last player to kick the ball
        // 0 means it has passed 15 at least once
        
if ( ilastplayer == )
            
ilastplayer 15
        
else
            
ilastplayer--

        if ( 
assistilastplayer ] != ) {
            new 
ixbool:canaddplayerid
            
for(i=0i<16i++) {
                
// Stop if we've already found 4 assisters
                
if ( iassisters == MAX_ASSISTERS )
                    break
                
playerid assist]
                
// Skip if player is invalid
                
if ( playerid == )
                    continue
                
// Skip if kicker is counted as an assister
                
if ( playerid == assistilastplayer ] )
                    continue

                
canadd true
                
// Loop through each assister value
                
for(x=0x<3x++)
                    
// make sure we can add them
                    
if ( playerid == assisters] ) {
                        
canadd false
                        
break
                    }

                
// Skip if they've already been added
                
if ( canadd == false )
                    continue
                
// They didn't kick the ball last, and they haven't been added, add them
                
assistersiassisters++ ] = playerid
            
}
            
// This gives each person an assist, xp, and prints that out to them
            
new cpass
            
for(c=0c<iassistersc++) {
                
pass assisters]
                
Event_Record(passASSIST, -1EXP_ASSIST)
                
client_printpassprint_chat"%L",pass,"EXP_FOR_ASSIST",EXP_ASSIST)
            }
        }
        
iassist] = 0
        
/////////////////////ASSIST CODE HERE///////////

        
for(l=0l<3l++)
            
distorig[1][l] = floatround(netOrig[l])
        new 
distshot = (get_distance(distorig[0],distorig[1])/12)
        new 
gainedxp distshot EXP_GOAL

        format
(temp1,63,"%L",LANG_PLAYER,"SCORED_GOAL",TeamNames[team],aname,distshot)
        
client_print(0,print_console,"%s",temp1)


        if(
distshot MadeRecord[ballowner][DISTANCE])
            
Event_Record(ballownerDISTANCEdistshot0)// record distance, and make that distance exp

        
Event_Record(ballownerGOAL, -1gainedxp)    //zero xp for goal cause distance is what gives it.

        //Increase Score, and update cvar score
        
score[team]++
        switch(
team) {
            case 
1set_cvar_num("score_ct",score[team])
            case 
2set_cvar_num("score_t",score[team])
        }
        
client_print(ballowner,print_chat,"%L",ballowner,"EXP_FOR_GOAL",gainedxp,distshot)

        new 
oteam = (team == 1)
        
increaseTeamXP(team75)
        
increaseTeamXP(oteam50)
        
moveBall(0)

        new 
x
        
for(x=1x<=maxplayersx++) {
            if(
is_user_connected(x))
            {
                
Event_Record(xGOALYGoalyPoints[x], 0)
                new 
kills get_user_frags(x)
                new 
deaths cs_get_user_deaths(x)
                
setScoreInfo(x)
                if( 
deaths 0)
                    
PlayerDeaths[x] = deaths
                
if( kills 0)
                    
PlayerKills[x] = kills
            
}
        }

        if(
score[team] < get_pcvar_num(CVAR_SCORE)) {
            new 
random_num(0,MAX_SOUNDS-1)
            
play_wav(0SCORED_SOUNDS[r]);

        }
        else {
            
winner team
            format
(scoreboard,1024,"%L",LANG_PLAYER,"TEAM_WINS",TeamNames[team])
            
set_task(1.0,"showhud_winner",0,"",0,"a",3)
        }

        
server_cmd("sv_restart 4")

    }
    else if(
goalpost == goalent) {
        
moveBall(0team)
        
client_print(ballowner,print_chat,"%L",ballowner,"CANNOT_KICK_GOAL")
    }
    return 
PLUGIN_HANDLED

Krycek is offline
sjgunner
Junior Member
Join Date: May 2008
Location: Moscow
Old 05-01-2010 , 03:02   Re: Soccer Jam v2.07a
Reply With Quote #597

Quote:
Originally Posted by Krycek View Post
How can i fix this ?

PHP Code:
[AMXXDisplaying debug trace (plugin "soccerjam.amxx")
[
AMXXRun time error 4index out of bounds 
[AMXX]    [0soccerjam.sma::touchNet (line 1291
I have the same error.
I checked this index:
PHP Code:
    new team get_user_team(ballowner)
    
log_amx("%i"team)
    new 
goalent GoalEnt[team
get_user_team() returns -1 when this error appears
__________________
sjgunner is offline
Send a message via ICQ to sjgunner
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 05-02-2010 , 14:13   Re: Soccer Jam v2.07a
Reply With Quote #598

How can i use the Ball on Jailbreak Maps like jail_czone?
STr!ker is offline
obione
Junior Member
Join Date: Jan 2010
Old 05-02-2010 , 14:13   Re: Soccer Jam v2.07a
Reply With Quote #599

hello there.. i have some questions.
first of, i ve been trying to run this game on my server and i always got this error:
L 05/02/2010 - 19:01:52: -------- Mapchange to soccerjam --------
./hlds_run: line 321: 14830 Segmentation fault $HL_CMD

Now, i've just started the server with a different map , and then changed to soccerjam with amx_map and it worked fine.

Now my second question is... IS there a version 2.10? i see some server running it. I see some servers using some settings that are not featured in this version. For example, u have to pass 2 or 3 times (depends on number of players) in order to score (the ball needs to be on fire) etc.
Do u know where can i find version 2.10 or some of those plugins?
obione is offline
obione
Junior Member
Join Date: Jan 2010
Old 05-04-2010 , 17:20   Re: Soccer Jam v2.07a
Reply With Quote #600

Could someone give me a code that makes it impossible for someone to score if he dont make at least 2-3 passes with his teamates?
Also, could the number of passes be dynamic? for example if there are 3 players on the CTs , u should make 2 passes to make a goal. If there are 5 CT's, 3 passes etc.
I dont know amxx coding so it woud be something like this :

if MAX_LVL_POWERPLAY >= PASSES
then BE_ABLE_TO_SCORE
obione is offline
Reply



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 19:30.


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