19.08.2012, 13:19
pawn Код:
if (strcmp("/et", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid)
{
if(PlayerInfo[playerid][msFaction] != 255 && DynamicFactions[PlayerInfo[playerid][msFaction]][fType] == 7)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, -2531.9199,-19.4328,16.1298)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
new rmpcar = GetVehicleTrailer(tmpcar);
if(rmpcar != 0)
{
SetVehiclePos(tmpcar, 2208.3252,1552.4418,1007.2502);
SetVehicleZAngle(tmpcar, 271.1434);
LinkVehicleToInterior(tmpcar, 1);
}
else
{
SetVehiclePos(tmpcar, 2208.3252,1552.4418,1007.2502);
SetVehicleZAngle(tmpcar, 271.1434);
LinkVehicleToInterior(tmpcar, 1);
}
else if(!IsPlayerInAnyVehicle(playerid)
{
SetPlayerPos(playerid, 2208.3252,1552.4418,1007.2502);
SetPlayerInterior(playerid,1);
}
}
}
}
return 1;
}