CreateDynamicCP issue
#1

Checkpoint disappears when I enter in it, and OnPlayerLeaveDynamicCp is not called . How I can make the checkpoint to stay active all time ?

Код:
cpTeritory[ CreateDynamicCP(-1580.51, 717.117, -5.24, 2.0) ] = 2;
...

public OnPlayerEnterDynamicCP(playerid, checkpointid) {
    new Teritory = cpTeritory[ checkpointid ] ;
	if ( Teritory != 0 )
	{
	    SendClientMessage(playerid,-1,"IN");
	}
return 1;
}


public OnPlayerLeaveDynamicCP( playerid, checkpointid ) {
    new Teritory = cpTeritory[ checkpointid ];
	if ( Teritory != 0 )
	{
	    SendClientMessage(playerid,-1,"OUT");
	}
	return 1;
}
EDIT: Fixed. I removed DisablePlayerCheckpoint(playerid); from default public OnPlayerEnterCheckpoint(playerid) callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)