26.10.2013, 19:12
(
Последний раз редактировалось iFiras; 11.09.2014 в 03:16.
)
Deleted.
new
Float: cp_x,
Float: cp_y,
Float: cp_z
;
Streamer_GetFloatData( STREAMER_TYPE_CP, SupaExitCP[ playerid ], E_STREAMER_X, cp_x );
Streamer_GetFloatData( STREAMER_TYPE_CP, SupaExitCP[ playerid ], E_STREAMER_Y, cp_y );
Streamer_GetFloatData( STREAMER_TYPE_CP, SupaExitCP[ playerid ], E_STREAMER_Z, cp_z );
SetPlayerPos( playerid, cp_x, cp_y, cp_z );
if(checkpointid == SupaSaveCP[playerid])
{
if(tickcount()/1000 - GetPVarInt(playerid,"RecentlyEnteredCP")/1000 > 5)
{
if(GetPlayerControllable(playerid) == 1)
{
SetPlayerPos(playerid,485.0322,-2378.1455,10.7833);
SetPlayerInterior(playerid,12);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid,179.3945);
TextDrawShowForPlayer(playerid,LoadingObjs);
TextDrawShowForPlayer(playerid,LoadingBOX);
TextDrawShowForPlayer(playerid,Please);
SetTimer("UnfreezePlayer",2000,false);
SetTimer("LoadingTDS",2000,false);
SetPVarInt(playerid,"RecentlyEnteredCP",tickcount());
}
}
else return 1;
}
if(checkpointid == SupaExitCP[playerid])
{
if(tickcount()/1000 - GetPVarInt(playerid,"RecentlyEnteredCP")/1000 > 5)
{
if(GetPlayerControllable(playerid) == 1)
{
SetPlayerPos(playerid,-2442.7317,755.4174,35.1719);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
SetPlayerFacingAngle(playerid,177.3436);
SetPlayerInterior(playerid,0);
SetTimer("UnfreezePlayer",2000,false);
SetPVarInt(playerid,"RecentlyEnteredCP",gettime());
}
}
else return 1;