20.02.2010, 18:57
Hello guys.
I made a small script:
But when i type /fix for example im in elegy when i type in /fix the car jumps and it changes color + the player that sits beside you exit the car. I would like to have that command without jumping changing color and the player exiting the car. Or the command /vehgod that if your car has below 999hp it fixs with changing car body.
Thanks, Eryk
I made a small script:
Code:
if(strcmp(cmdtext, "/fix", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { new Float:x, Float:y, Float:z; new vehid; new modelid; new Float:rot; vehid = GetPlayerVehicleID(playerid); modelid = GetVehicleModel(vehid); GetVehiclePos(vehid, x, y, z); GetVehicleZAngle(vehid, rot); DestroyVehicle(vehid); CreateVehicle(modelid, x, y, z, rot, -1, -1, 6666); SetVehiclePos(vehid, x, y, z); PutPlayerInVehicle(playerid, vehid, 0); } return 1; }
Thanks, Eryk