14.02.2013, 16:45
Salve mulecada, arrumei outro jeito de fazer as gangzones mas ele ta dando o flash e nunca domina, vou separar uma gangzone para vcs verem, tem como analisar e ver o erro por favor? desde ja grato!
TOPO DO GM:
ONGAMEMODEINIT
ONPLAYERSPAWN
ONPLAYERENTERCHECKPOINT
TIMER DOMINADO:
OBS. TODAS AS GANGZONES UTILIZAM O MESMO TIMER, O "DOMINADO", MAS PARA SIMPLIFICAR POSTEI SУ DE UMA
TOPO DO GM:
pawn Код:
new stuntpark, cpstunt;
pawn Код:
stuntpark = GangZoneCreate(-1532,793,-1484,660);
cpstunt = CPS_AddCheckpoint(-1510.2109,716.5993,7.1875, 4.0,90);
pawn Код:
GangZoneShowForPlayer(playerid, stuntpark, 0xFFFFFFAA);
pawn Код:
if(CPS_IsPlayerInCheckpoint(playerid,cpstunt))
{
new striing[204], org[104];
if(PlayerInfo[playerid][Boys] >= 1) { org = "os Da Nang Boys"; }
if(PlayerInfo[playerid][Triads] >= 1) { org = "os Triads"; }
if(PlayerInfo[playerid][FBI] >= 1) { org = "o FBI"; }
if(PlayerInfo[playerid][SWAT] >= 1) { org = "a SWAT"; }
if(PlayerInfo[playerid][Rifa] >= 1) { org = "os SF Rifa's"; }
if(PlayerInfo[playerid][Mafia] >= 1) { org = "a Mafia"; }
format(striing, sizeof(striing),"[GZ.INFO]O %s e %s estгo tentando dominar o Stunt Park | Local: /gps",Nome(playerid), org);
SendClientMessageToAll(GetPlayerColor(playerid), striing);
GangZoneFlashForAll(stuntpark, GetPlayerColor(playerid));
GameTextForPlayer(playerid, "~w~Aguarde ~b~15~w~seg", 3000, 1);
SetTimer("Dominado", 15000, false);
}
pawn Код:
forward dominado(playerid);
public dominado(playerid)
{
if(CPS_IsPlayerInCheckpoint(playerid,cpstunt))
{
new striing[204], org[104];
if(PlayerInfo[playerid][Boys] >= 1) { org = "os Da Nang Boys"; }
if(PlayerInfo[playerid][Triads] >= 1) { org = "os Triads"; }
if(PlayerInfo[playerid][FBI] >= 1) { org = "o FBI"; }
if(PlayerInfo[playerid][SWAT] >= 1) { org = "a SWAT"; }
if(PlayerInfo[playerid][Rifa] >= 1) { org = "os SF Rifa's"; }
if(PlayerInfo[playerid][Mafia] >= 1) { org = "a Mafia"; }
format(striing, sizeof(striing),"[GZ.INFO]O %s e %s dominaram o Stunt Park | Local: /gps",Nome(playerid), org);
SendClientMessageToAll(GetPlayerColor(playerid), striing);
GangZoneStopFlashForAll(stuntpark);
}
return true;
}