#4

pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new Float:pos[3];
    GetPlayerPos(clickedplayerid, pos[0], pos[1], pos[2]);
    if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
        SetVehiclePos(GetPlayerVehicleID(playerid), pos[0]+5, pos[1], pos[2]);
    else
      SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
    return 1;
}
Should work.
Reply


Messages In This Thread
GoTo - by patchkinson - 23.11.2009, 17:11
Re: GoTo - by Correlli - 23.11.2009, 17:13
Re: GoTo - by patchkinson - 23.11.2009, 17:17
Re: GoTo - by radhakr - 23.11.2009, 17:17
Re: GoTo - by patchkinson - 23.11.2009, 17:19
Re: GoTo - by radhakr - 23.11.2009, 17:22
Re: GoTo - by patchkinson - 23.11.2009, 17:29
Re: GoTo - by -8oHd4N- - 23.11.2009, 19:24

Forum Jump:


Users browsing this thread: 3 Guest(s)