12.04.2015, 22:51
I used Streamer plugin to make the multiple checkpoint
like this..i want when the player touched the checkpoint. that marker will dissapear and the player will be teleported to the interior like the basic checkpoint function. i want when player touched the checkpoint.. the checkpoint goes dissapear and will reepear after player not touched it.. can you help me? heres my code.. kinda sleepy...
like this..i want when the player touched the checkpoint. that marker will dissapear and the player will be teleported to the interior like the basic checkpoint function. i want when player touched the checkpoint.. the checkpoint goes dissapear and will reepear after player not touched it.. can you help me? heres my code.. kinda sleepy...
Код:
new LsGym; new LsGymExit;
Код:
public OnGameModeInit() LsGym = CreateDynamicCP(2229.5120, -1721.5774, 13.5642,3, -1,-1,-1,100.0); LsGymExit = CreateDynamicCP(772.2743, -5.5152, 1000.7284,3, -1,-1,-1,100.0);
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) { if(checkpointid == LsGym) //ls gym { SetPlayerInterior(playerid, 5); SetPlayerPos(playerid, 771.3447, -1.3051, 1000.7275); } if(checkpointid == LsGymExit) //ls gym exit { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 2229.5120, -1721.5774, 13.5642); } return 1; }