Score Menu - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Score Menu (
/showthread.php?tid=496254)
Score Menu -
trick_master - 21.02.2014
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
Re: Score Menu -
BroZeus - 21.02.2014
like what type of objective are u talking about?
Re: Score Menu -
FilesMAker - 21.02.2014
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.
Re : Score Menu -
trick_master - 21.02.2014
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)
Re: Score Menu -
Vanter - 21.02.2014
PHP код:
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;
}
Re : Score Menu -
trick_master - 21.02.2014
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)
Re: Score Menu -
FilesMAker - 21.02.2014
Look no need to restart all server just respawn players after some gametexts
Re : Re: Score Menu -
trick_master - 21.02.2014
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
Re: Score Menu -
FilesMAker - 21.02.2014
use textdraw then it's easy !
Re : Score Menu -
trick_master - 21.02.2014
But How it will show the Score Of the team ? i just want some Hints u dont need to do the work