08.02.2014, 19:13
(
Последний раз редактировалось Gh0s7; 09.02.2014 в 13:30.
)
Checkpoint disappears when I enter in it, and OnPlayerLeaveDynamicCp is not called . How I can make the checkpoint to stay active all time ?
EDIT: Fixed. I removed DisablePlayerCheckpoint(playerid); from default public OnPlayerEnterCheckpoint(playerid) callback.
Код:
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; }