01.03.2013, 17:35
OnPlayerEnterDynamicCP | Timers
Regards, thanks for read the thread and help. I have a problem whit the callback "OnPlayerEnterDynamicCP" (Used whit streamer include)... The timers inside of the callback doesnt are executing....
Callback
TIPS: - I tested it the "Timer" in a /test command, and works fine, so the problem is here.
Thanks for read and help...
Regards, thanks for read the thread and help. I have a problem whit the callback "OnPlayerEnterDynamicCP" (Used whit streamer include)... The timers inside of the callback doesnt are executing....
Callback
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
for(new i=0; i < sizeof(ZoneInfo); i++)
{
if(checkpointid == CPAero)
{
if(GetTeamZoneColor(ZoneInfo[i][zTeam]) != gTeam[playerid])
{
if(ZoneInfo[ZoneID[i]][zSiendoConquistada] == 1) return Message(playerid, GRIS, "[ERROR]: Esta zona ya esta siendo conquistada");
//___ Conquista Talibanes
if(gTeam[playerid] == TEAM_TALIBAN)
{
GangZoneFlashForAll(ZoneID[i], 0x45843396);
ZoneInfo[ZoneID[i]][zSiendoConquistada] = 1;
SetTimer("ConquistaAero", 2000, false);
}
if(gTeam[playerid] == TEAM_USA)
{
GangZoneFlashForAll(ZoneID[i], 0x0080C096);
ZoneInfo[ZoneID[i]][zSiendoConquistada] = 1;
SetTimer("ConquistaAero", 2000, false);
}
}
else Message(playerid, GRIS, "[ERROR]: Este territorio ya es de tu equipo");
}
}
return 1;
}
Thanks for read and help...