#2

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;
     }
Reply


Messages In This Thread
Goto - by Ananisiki - 02.03.2014, 16:36
Re: Goto - by TomatoRage - 02.03.2014, 16:41

Forum Jump:


Users browsing this thread: 2 Guest(s)