17.07.2013, 11:17
Hello.I am helping on a TDM server, but I have a problem with the function on the title.I tried debugging but nothing gets called.Here is the script:
And the CreateDynamicCP
I have no errors or anything...
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == CP[CityHall])
{
if(UnderAttack[CityHall] == 0) {
if(tCP[CityHall] != gTeam[playerid]) {
print("OnPlayerEnterDynamicCP: Checkpoint entered");
CountVar[playerid][CityHall] = 25;
ActiveCityHall(playerid);
print("OnPlayerEnterDynamicCP: ActiveCityHall started");
} else return SendClientMessage(playerid, COLOR_RED,"*This zone is already captured by your team!");
} else return CaptureZoneMessage(playerid, 2);
}
return 1;
}
pawn Код:
CP[CityHall] = CreateDynamicCP(-2706.1326,375.9625,4.9686,3,-1,-1,-1,100.0);