How to prevent Cars from move ??
#1

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 !!
Reply
#2

Please Help !!!!!
Reply
#3

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);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)