First Person driving removal
#1

Hello Script experts..

So.. I've downloaded the UG:RP gamemode, and trying to edit it and get the feeling of scripting, but i cant figure out where to look and what to remove to get that shitty FP-Driving away.. i've tried to search on "SetCameraBehindPlayer" and cut some pieces out but no luck..

I asume people allready knows the code, but i can post if needed..

Thanks!
Reply
#2

I don't know the code.
Reply
#3

I've uploaded here as a txt file.
Reply
#4

is it allowed to /bump?
Reply
#5

Look for AttachCameraToObject and remove it. Also, I just read over the code and I'm curious as to why you'd use a script like that. It's using two different saving systems and uses incredibly outdated scripting methods (strtok for example).
Reply
#6

Yes it i but only after 24 hours I believe.


If im right its this piece of code.
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
    {
        if(GetPVarInt(playerid,"used") == 0)
        {
            new p = GetPlayerVehicleID(playerid);
            pObj[playerid] = CreatePlayerObject(playerid,19300, 0.0000, -1282.9984, 10.1493, 0.0000, -1, -1, 100);
            AttachPlayerObjectToVehicle(playerid,pObj[playerid],p,-0.314999, -0.195000, 0.510000, 0.000000, 0.000000, 0.000000);
            AttachCameraToPlayerObject(playerid,pObj[playerid]);
            SetPVarInt(playerid,"used",1);
        }
    }
    else if(GetPVarInt(playerid,"used") == 1)
    {
        SetCameraBehindPlayer(playerid);
        DestroyPlayerObject(playerid,pObj[playerid]);
        SetPVarInt(playerid,"used",0);
    }
Reply
#7

Thank you Facerafter, you were right!

/Resolved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)