02.03.2014, 16:41
pawn Код:
new Float:x, Float:y, Float:z;
if(IsPlayerInAnyVehicle(playerid)) {
GetPlayerPos(pID, x, y, z);
SetPlayerInterior(playerid, GetPlayerInterior(pID));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pID));
SetVehiclePos(GetPlayerVehicleID(playerid), x+2, y+2, z);
}
else
{
GetPlayerPos(pID, x, y, z);
SetPlayerInterior(playerid, GetPlayerInterior(pID));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pID));
SetPlayerPos(playerid, x+2, y+2, z);
}
if(GetPlayerInterior(pID) > 0)
{
SendCilentMessage(playerid,COLOR,"You cannot go to this player because he is in interior.");
return 1;
}