How to prevent Cars from move ?? - 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:  How to prevent Cars from move ?? (
/showthread.php?tid=551339)
 
How to prevent Cars from move ?? - 
nezo2001 -  18.12.2014
First, This is the code
PHP код:
    else if(strmatch(VehicleSystem[GetCreatorID(vehicleid)][owner],"dealercar"))
    {
    if(!IsPlayerAdmin(playerid)){
    TogglePlayerControllable(playerid,0);}
    new fffx[128];
    format(fffx,sizeof(fffx),"This Car Is For Sale. Price %d$",VehicleSystem[GetCreatorID(vehicleid)][preis]);
    SendClientMessage(playerid,WHITE,fffx);
    SendClientMessage(playerid,YELLOW,"INFO: Use /buyveh to Buy it or you exited the car use '/exitcar'.");
    } 
 This is code is "if player doesn't own the car"
I want a code to add to prevent cars from move.
Please Help !!
Re: How to prevent Cars from move ?? - 
nezo2001 -  18.12.2014
Please Help !!!!!
Re: How to prevent Cars from move ?? - 
Hessu -  18.12.2014
Use this :
Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, o, lights, alarm, doors, bonnet, boot, objective);