Score Menu
#1

Hello Guys, Just want to make a simple Score menu for teams ( 2 teams) where just when a team attain 10 (Or what ever u set it ) score(completing the objective) the server restart and make a new round
i appreciate if Someone Give me some Hints or where to start.

Made evrything but stuck at this point
Reply
#2

like what type of objective are u talking about?
Reply
#3

you need to make a 2 global variables who count every team kill, when some of those variables reach the objectif reset them to 0 and respawn all players. I'm not clear because i need to see your scripts to give you the correct answer.
Reply
#4

i have 2 team LS airport and LV airport each objective of these team is steal the other team (special) plane marked on the map with an arrow. i succusfully made the server restart and make a new round each time a team has stolen the other team' plane 10 times but it is Not Visible on the Screen... like This
LS Airport (SCORE)
LV Airport (SCORE)
Reply
#5

PHP код:
new LSScore;
new 
LVScore;

public 
OnPlayerDeath(playeridkilleridreason)
{
     if(
gTeam[killerid] == TEAM_LSAIRPORT)
     {
         
LSScore ++;
     }
     if(
gTeam[killerid] == TEAM_LVAIRPORT)
     {
         
LVScore ++;
     }
     return 
1;
}

//Under OnGameModeInIt
    
SetTimer("PlayerOneSecondVariables",1000,1);


forward PlayerOneSecondVariables();
public 
PlayerOneSecondVariables()
{
    if(
LSScore >= 10)
    {
        
SendRconCommand("gmx");
     }
    if(
LVScore >= 10)
    {
        
SendRconCommand("gmx");
     }
     return 
1;

Reply
#6

Quote:

new LSScore;
new LVScore;

public OnPlayerDeath(playerid, killerid, reason)
{
if(gTeam[killerid] == TEAM_LSAIRPORT)
{
LSScore ++;
}
if(gTeam[killerid] == TEAM_LVAIRPORT)
{
LVScore ++;
}
return 1;
}

//Under OnGameModeInIt
SetTimer("PlayerOneSecondVariables",1000,1);


forward PlayerOneSecondVariables();
public PlayerOneSecondVariables()
{
if(LSScore >= 10)
{
SendRconCommand("gmx");
}
if(LVScore >= 10)
{
SendRconCommand("gmx");
}
return 1;
}

Thanks mate But i have done that i mean the server restart evry time a team has score 10 Points But i want to make like some Words on screen That tell all players the score like
LS Airport (SCORE)
LV Airport (SCORE)
Reply
#7

Look no need to restart all server just respawn players after some gametexts
Reply
#8

Quote:

Look no need to restart all server just respawn players after some gametexts

Yeah...you are right
But game text dont last long i want it to stay there all the time to indicate SCore
Reply
#9

use textdraw then it's easy !
Reply
#10

But How it will show the Score Of the team ? i just want some Hints u dont need to do the work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)