10.04.2012, 19:06
Compile with 0.3e
pawn Код:
#include <a_samp>
new objet[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
objet[playerid] = CreateObject(19300, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0);
AttachObjectToPlayer(objet[playerid], playerid, 0.0, 0.3, 0.7, 0, 0, 0);
AttachCameraToObject(playerid, objet[playerid]);
return true;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SetCameraBehindPlayer(playerid);
return true;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
AttachCameraToObject(playerid, objet[playerid]);
return true;
}
public OnPlayerDisconnect(playerid, reason)
{
DestroyObject(objet[playerid]);
return true;
}