Kód: // 1st Person CarCam By Redreaper666 & rati555|| V2.0
//INLUDES + DEFINES
#include <a_samp>
#include <zcmd>
new obj[MAX_PLAYERS];
public OnFilterScriptInit()
{
print(\" >A Kamera scriptet készítette : **redreaper666** \");
print(\" >Fordította : **pisti525** \");
return 1;
}
//AUTOMAIC NORMAL CAM IF PLAYER GOES OUT OF THE CAR
public OnPlayerExitVehicle(playerid,vehicleid)
{
if(GetPVarInt(playerid,\"used\") == 1)
{
SetPVarInt(playerid,\"used\",0);
SetCameraBehindPlayer(playerid);
DestroyPlayerObject(playerid,obj[playerid]);
}
return 1;
}
//VIEW COMMAND ON
CMD:carcamon(playerid,params[])
{
if(GetPVarInt(playerid,\"used\") == 0)
{
new p = GetPlayerVehicleID(playerid);
obj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
AttachPlayerObjectToVehicle(playerid,obj[playerid],p,-0.6, -0.3, 0.490000, 0.000000, 0.000000, 0.000000);
AttachCameraToPlayerObject(playerid,obj[playerid]);
SetPVarInt(playerid,\"used\",1);
}
else if(GetPVarInt(playerid,\"used\") == 1)
{
SetCameraBehindPlayer(playerid);
DestroyPlayerObject(playerid,obj[playerid]);
SetPVarInt(playerid,\"used\",0);
}
return 1;
}
//VIEW COMMAND OFF
CMD:carcamoff(playerid,params[])
{
if(GetPVarInt(playerid,\"used\") == 0) return SendClientMessage(playerid,-1,\"Mégis mit akarsz kikapcsolni ? Normális kamera nézetben vagy..\");
{
SetCameraBehindPlayer(playerid);
DestroyPlayerObject(playerid,obj[playerid]);
SetPVarInt(playerid,\"used\",0);
}
return 1;
}
Használjátok egészséggel