20.10.2009, 17:36
It works! Its made specialy for 0.3
EDIT: Oh sory, dugi gave you an old code which wont work!
Try this, this is in the same post:
EDIT: Oh sory, dugi gave you an old code which wont work!
Try this, this is in the same post:
pawn Код:
new bool:traincamera[MAX_PLAYERS] = false;
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && GetVehicleModel(GetPlayerVehicleID(playerid)) == 449)
{
traincamera[playerid] = true;
}
if(traincamera[playerid] == true && newstate == PLAYER_STATE_ONFOOT)
{
SetCameraBehindPlayer(playerid);
traincamera[playerid] = false;
}
return 1;
}