Posts: 186
Threads: 41
Joined: Aug 2013
Quote:
Originally Posted by saikumar
pawn Код:
new telecp_1; new telecp_2;
public OnGameModeInit() telecp_1 = CreateDynamicCP(YOUR_X, YOUR_Y, YOUR_Z, 1.5, -1, -1, -1, 150.0); telecp_2 = CreateDynamicCP(YOUR_X, YOUR_Y, YOUR_Z, 3.0, -1, 5, -1, 300.0);
public OnPlayerEnterCheckpoint(playerid, checkpointid) { if(checkpointid == lobbyexit) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, -527.7829,2312.0740,50.1866); } return 1; }
|
this is not how exactly i made in script i just showed example
and thanks for info @Konstantinos
i used this:
public OnPlayerEnterCheckpoint(playerid, checkpointid)
instead of this:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
anyway thanks for help