31.01.2010, 17:44
pawn Код:
#include <streamer>
new calexit,calentry,dentry,pdexit;
public OnGameModeInit()
{
calentry = CreateDynamicCP(2196.2510,1677.2078,12.3672, 1, -1, -1, 100.0);
calexit = CreateDynamicCP(2233.9316,1714.6794,1012.3828, 1, -1, 100.0);
pdentry = CreateDynamicCP(2290.1140,2431.4399,10.8203, 1, -1, -1, 100.0);
pdexit = CreateDynamicCP(2290.1140,2431.4399,10.8203,1, -1, -1, 100.0);
return 1;
}
public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
if(streamid == calentry)
{
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,2234.0046,1710.6891,1011.2861);
SetPlayerFacingAngle(playerid,180.4817);
}
else if(streamid == calexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2190.8484,1676.4915,11.7862);
SetPlayerFacingAngle(playerid,92.4966);
}
else if(streamid == pdentry)
{
SetPlayerInterior(playerid,2);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
SetPlayerFacingAngle(playerid,180.4817);
}
else if(streamid == pdexit)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2290.1140,2431.4399,10.8203);
SetPlayerFacingAngle(playerid,92.4966);
}
return 1;
}