23.11.2009, 17:17
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;
}