SA-MP Forums Archive
Carpark. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Carpark. (/showthread.php?tid=293777)



Carpark. - Fool - 29.10.2011

Yeah, I've seen a lot of players getting car-parked by other player(s).

However, I would like to stop this attack, What functions could be useful?


Re: Carpark. - Zonoya - 29.10.2011

maybe using this method
pawn Код:
public // bla bla bla
{
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    new vid = GetPlayerVehicleID(playerid);
    if(GetVehiclePos(vid, X, Y, Z);
    {
        SetVehiclePos(vid, X+5, Y+5, Z);
    }
    return 1;
}
//rest of script
I has no idea just tryin to help ya


Re: Carpark. - Fool - 29.10.2011

Seems good, thanks, but if anyone else has an other method, Feel free to reply.