linha 13 -> new Bandidos; linha 14 -> new Policia;
if (strcmp("/dominar", cmdtext, true, 10) == 0)
{
if(IsPlayerInPlace(playerid,2239.024,-1721.339, 2512.828, -1638.437))
{
linha 1082 -> if(gTeam == Policia)
{
GangZoneFlashForAll(Bandidos,COR_POLICIA);
SetTimer("DominarPoliciaBandidos",60000,false);
}
linha 1807 ->else if(gTeam == Bandidos)
{
GangZoneFlashForAll(Bandidos,COR_BANDIDOS);
SetTimer("DominarBandidosBandidos",60000,false);
}
}
else if(IsPlayerInPlace(playerid,2282.1401,2425.7576,3.4692,357.7160))
{
linha 1095 -> if(gTeam == Policia)
{
GangZoneFlashForAll(Bandidos,COR_POLICIA);
SetTimer("DominarPoliciaPolicia",60000,false);
}
linha 1100 -> else if(gTeam == Bandidos)
{
GangZoneFlashForAll(Bandidos,COR_BANDIDOS);
SetTimer("DominarBandidosPolicia",60000,false);
}
}
return 1;
}
GangZoneShowForPlayer(playerid, Bandidos, COR_BANDIDO); GangZoneShowForPlayer(playerid, Policia, COR_POLICIA);
linha 1897 ->Bandidos = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424); linha 1898 ->Policia = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424);
)#define PlayerPolicial 191
#define PlayerBandido 171
new gBandidos, gPolicia;
new gTeam[MAX_PLAYERS];
onplayerconnect(playerid)
{
gTeam[playerid] = 0;
}
ongamemodeint()
{
gBandidos = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424);
gPolicia = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424);
}
/*
* :P
*/
if(gTeam[playerid] == PlayerPolicial)
{
GangZoneShowForPlayer(playerid, gBandidos, COR_BANDIDO);
}
else if(gTeam[playerid] == PlayerBandido)
{
GangZoneShowForPlayer(playerid, gPolicia, COR_POLICIA);
}
onplayercommandtext(){
if (strcmp("/polico", cmdtext, true, 10) == 0)
{
gTeam[playerid] = PlayerPolicial;
//vc й um policial a partir desse momento.
return 1;
}
if (strcmp("/vagabundo", cmdtext, true, 10) == 0)
{
gTeam[playerid] = PlayerBandido;
//vc й um Bandido a partir desse momento.
return 1;
}
if (strcmp("/dominar", cmdtext, true, 10) == 0)
{
if(IsPlayerInPlace(playerid,2239.024,-1721.339, 2512.828, -1638.437))
{
linha 1082 -> if(gTeam[playerid] == PlayerPolicial)
{
GangZoneFlashForAll(gBandidos,COR_POLICIA);
SetTimer("DominarPoliciaBandidos",60000,false);
}
linha 1807 ->else if(gTeam[playerid] == PlayerBandido)
{
GangZoneFlashForAll(gBandidos,COR_BANDIDOS);
SetTimer("DominarBandidosBandidos",60000,false);
}
}
else if(IsPlayerInPlace(playerid,2282.1401,2425.7576,3.4692,357.7160))
{
linha 1095 -> if(gTeam[playerid] == PlayerPolicial)
{
GangZoneFlashForAll(gBandidos,COR_POLICIA);
SetTimer("DominarPoliciaPolicia",60000,false);
}
linha 1100 -> else if(gTeam[playerid] == PlayerBandido)
{
GangZoneFlashForAll(gBandidos,COR_BANDIDOS);
SetTimer("DominarBandidosPolicia",60000,false);
}
}
return 1;
}
}
public OnPlayerSpawn(playerid)
if(gTeam[playerid] == Bandidos )
{
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerPos(playerid,1675.4425,-2120.3372,13.5469);
}
else if(gTeam[playerid] == Policia )
{
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerPos(playerid,1580.3890,-1636.2451,13.5588);
}
linha 1795 -> if(gTeam[playerid] == Policial)
{
GangZoneShowForPlayer(playerid, Bandidos, COR_BANDIDO);
}
Linha 1799 -> else if(gTeam[playerid] == Bandido)
{
GangZoneShowForPlayer(playerid, Policia, COR_POLICIA);
}
|
Preste mais atencгo no cуdigo que lhe enviei nгo hб erros.
Obs: Apenas lhe dei a base. |
{
Bandidos = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424);
Policia = GangZoneCreate(1283.7197,-2061.5576,1105.7473,-1995.7424);
} // 1906
1795) : error 010: invalid function or declaration (1799) : error 010: invalid function or declaration

public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == Bandidos )
{
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerPos(playerid,1675.4425,-2120.3372,13.5469);
}
else if(gTeam[playerid] == Policia )
{
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerPos(playerid,1580.3890,-1636.2451,13.5588);
}
if(gTeam[playerid] == Policial)
{
GangZoneShowForPlayer(playerid, Bandidos, COR_BANDIDO);
}
else if(gTeam[playerid] == Bandido)
{
GangZoneShowForPlayer(playerid, Policia, COR_POLICIA);
}
return 1;
}
public On(playerid)
{
SendClientMessage(playerid, azul, "mensagem");
} // Erro
return 1;
}
public OnPlayerSpawn(playerid)
if(gTeam[playerid] == Bandidos )
{
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerPos(playerid,1675.4425,-2120.3372,13.5469);
}
else if(gTeam[playerid] == Policia )
{
SetPlayerColor(playerid, COLOR_BLUE);
SetPlayerPos(playerid,1580.3890,-1636.2451,13.5588);
}
Linha 1797 -> GangZoneShowForPlayer(playerid, Bandidos, COR_BANDIDOS);
GangZoneShowForPlayer(playerid, Policia, COR_POLICIA);
public On(playerid)
{
Linha 1803 -> SendClientMessage(playerid, "mensagem");
} // Erro
Linha 1805 -> return 1
)
public On(playerid)
{
SendClientMessage(playerid,COLOR_GREEN,"PEIDEI");
}
return 1;
}