11.08.2012, 00:43
i want to create a checkpoint when entered the player teleports into the interior ID i want
also i want to know how to create multiple checkpoints
also i want to know how to create multiple checkpoints
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
|
i want to create a checkpoint when entered the player teleports into the interior ID i want
also i want to know how to create multiple checkpoints |
stock SetPlayerPosInt( playerid, Float:x, Float:y, Float:z, interior = 0 )
{
SetPlayerPos( playerid, x, y, z );
SetPlayerInterior( playerid, interior );
return 1;
}
You can now use "SetPlayerPosInt( playerid, x, y,z, 2 ); // 2 is interior you can also use x y z SetPlayerPosInt( playerid, x , y , z );
SetPlayerPos( playerid, x , y , z );
SetPlayerInterior( playerid, 2 ); // 2 is interior I'd you can change it to your own.