Timers Problem | OnPlayerEnterDynamicCP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timers Problem | OnPlayerEnterDynamicCP (
/showthread.php?tid=419627)
Timers Problem | OnPlayerEnterDynamicCP -
CrossOv3r - 01.03.2013
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
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;
}
TIPS: - I tested it the "Timer" in a /test command, and works fine, so the problem is here.
Thanks for read and help...