11.08.2010, 14:24
(
Последний раз редактировалось LZLo; 11.08.2010 в 20:51.
)
IT IS A CUT OF MY GM!!
PHP код:
//at the beginnig...
#include <a_samp>
#include <float>
#include <Dini>
#include <Dutils>
#include <Seifader>
enum pTeams
{
TEAM_POLICE,
TEAM_SWAT,
TEAM_ARMY,
TEAM_AMCSI,
TEAM_COLUMBIANO,
TEAM_KINA,
TEAM_TERRO,
};
new teamScore[pTeams];
public OnPlayerDeath(playerid, killerid, reason)
{
for(new i=0, m=GetMaxPlayers(); i<m; i++)
{
if(gTeam[playerid] == TEAM_POLICE)
{
teamScore[TEAM_POLICE]++;//error 001: expected token: ";", but found "[" and error 001: expected token: ";", but found "]"
if(teamScore[TEAM_POLICE] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_SWAT)
{
teamScore[i][TEAM_SWAT]++;
if(teamScore[i][TEAM_SWAT] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_ARMY)
{
teamScore[i][TEAM_ARMY]++;
if(teamScore[i][TEAM_ARMY] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_AMCSI)
{
teamScore[i][TEAM_AMCSI]++;
if(teamScore[i][TEAM_AMCSI] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_COLUMBIANO)
{
teamScore[i][TEAM_COLUMBIANO]++;
if(teamScore[i][TEAM_COLUMBIANO] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_KINA)
{
teamScore[i][TEAM_KINA]++;
if(teamScore[i][TEAM_KINA] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
if(gTeam[playerid] == TEAM_TERRO)
{
teamScore[i][TEAM_TERRO]++;
if(teamScore[i][TEAM_TERRO] >= 50)
{
GameTextForAll("~w~Corleones Won",5000,0);
SetTimer("EndGM", 10000,0);
}
}
}
return 1;
}