25.04.2013, 07:11
E ai galera do samp forum to precisando de uma ajudinha de vocкs tipo eu tava lб codando ai tava olhando as orgs esqueci de fazer a parte de dominar de um ai eu fiz tudo normal copilo sem erro mais na hoora que ta jogando fica dominando e nao para nunca koskopsk si poderem me ajudar com isso agradeзo code a baixo
pawn Код:
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)// TCL
{
if(IsPlayerInFavela(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranaFavela == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os The Crazy Life estгo dominando a Favela!",playername);
SendClientMessageToAll(TEAM_TCL_COLOR, string);
SendClientMessage(playerid, COR_TCL, "Fique esperto, A Polнcia e todas as gangues foram avisadas!");
SendClientMessage(playerid, COR_TCL, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZFavela,TEAM_TCL_COLOR);
Dominando[playerid] = 1;
ProvocoFavela[playerid] = 1;
GuerranaFavela = 1;
TempoGuerraFavela = SetTimerEx("GuerraFavela", 60000, 0, "i", playerid);
return 1;
}
if(IsPlayerInSkate(playerid))
{
if(Dominando[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб dominando um territorio.");
return 1;
}
if(GuerranoSkate == 1)
{
SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma guerra nesse territorio.");
return 1;
}
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os Los Aztecas estгo dominando a Pista de Skate!",playername);
SendClientMessageToAll(TEAM_TCL_COLOR, string);
SendClientMessage(playerid, COR_TCL, "Fique esperto, A Polнcia e todas as gangues foram avisadas!");
SendClientMessage(playerid, COR_TCL, "Espere 1 minuto para dominar estб area .");
GangZoneFlashForAll(GZSkate,TEAM_TCL_COLOR);
Dominando[playerid] = 1;
ProvocoSkate[playerid] = 1;
GuerranoSkate = 1;
TempoGuerraSkate = SetTimerEx("GuerraSkate", 60000, 0, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD3, "Vocк nгo estб em nenhum territуrio!");
}
return 1;
}