ClownsPocket = CreateDynamicCP(2227.2625,1838.7096,10.8203,1.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == ClownsPocket)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
SetPlayerVirtualWorld(playerid,8);
}
}
return 1;
}
return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(checkpointid == ExClownsPocket)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2221.0005,1838.7570,10.8203);
SetPlayerVirtualWorld(playerid,0);
}
return 1;
}
Casino = CreateDynamicCP(2166.1289,2165.0969,10.8203,1.0);
RedsandsWest = CreateDynamicCP(1658.4846,2250.0439,11.0701,1.0);
RoyalCasino = CreateDynamicCP(2090.0520,1514.6766,10.8203,1.0);
PinkCasinoLVPD = CreateDynamicCP(2014.8260,1107.0189,10.8203,1.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == RoyalCasino)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
SetPlayerVirtualWorld(playerid,12);
}
}
if(checkpointid == PinkCasinoLVPD)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
SetPlayerVirtualWorld(playerid,11);
}
}
if(checkpointid == Casino)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
SetPlayerVirtualWorld(playerid,10);
}
}
if(checkpointid == RedsandsWest)
{
if(!IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid,1133.1853,-11.3326,1000.6797);
SetPlayerVirtualWorld(playerid,9);
}
}
return 1;
}
return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
if(checkpointid == ExRedsandsWest)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1658.7145,2253.7153,10.8203);
SetPlayerVirtualWorld(playerid,0);
}
if(checkpointid == ExPinkCasinoLVPD)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2019.1819,1100.4955,10.8203);
SetPlayerVirtualWorld(playerid,0);
}
if(checkpointid == ExCasino)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2162.1414,2159.8154,10.8203);
SetPlayerVirtualWorld(playerid,0);
}
if(checkpointid == ExRoyalCasino)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2084.7068,1518.6965,10.8203);
SetPlayerVirtualWorld(playerid,0);
}
return 1;
}
From
CreateDynamicCP = CreateCheckpoint
From
OnPlayerEnterDynamicCP = OnPlayerEnterCheckpoint
Try reediting:
PHP код:
|
Casino = CreateCheckpoint(2166.1289,2165.0969,10.8203,1.0);
RedsandsWest = CreateCheckpoint(1658.4846,2250.0439,11.0701,1.0);
RoyalCasino = CreateCheckpoint(2090.0520,1514.6766,10.8203,1.0);
PinkCasinoLVPD = CreateCheckpoint(2014.8260,1107.0189,10.8203,1.0);
public OnPlayerEnterCheckpoint(playerid, checkpointid)
{
Casino = CreateDynamicCP(2166.1289,2165.0969,10.8203,1.0);
RedsandsWest = CreateDynamicCP(1658.4846,2250.0439,11.0701,1.0);
RoyalCasino = CreateDynamicCP(2090.0520,1514.6766,10.8203,1.0);
PinkCasinoLVPD = CreateDynamicCP(2014.8260,1107.0189,10.8203,1.0);
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
An example:
PHP код:
PHP код:
|