Team Score problems [+Rep] - 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: Team Score problems [+Rep] (
/showthread.php?tid=379671)
Team Score problems [+Rep] -
Twinklies - 22.09.2012
I have problem. I am trying to add that map changes if Team score is 100 or after 8 minutes. I managed to make it with the timer but I cannot figure out how to add that it shows textdraw with the team score and it changes map and restarts team score if score is over 100...
Here's my code of the map change:
PHP код:
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
SpawnPlayer ( i ) ;
switch ( MapChange ) {
case 0:
{
SendClientMessage(i,COLOR_RED,"Map changed");
}
case 1:
{
SendClientMessage(i,COLOR_RED,"Map changed");
}
case 2:
{
}
}
}
return 1;
}