stock ChangeVehicleModel(playerid,vehicleid,newmodel)
{
new
Float:x,
Float:y,
Float:z,
Float:angle,
Float:veloX,
Float:veloY,
Float:veloZ;
vehicleid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehicleid, x, y, z);
GetVehicleZAngle(vehicleid, angle);
GetVehicleVelocity(vehicleid, veloX, veloY, veloZ);
DestroyVehicle(vehicleid);
CreateVehicle(newmodel, x, y, z, angle, 0, 0, 0);
SetVehicleVelocity(vehicleid, veloX, veloY, veloZ);
}
CMD:asd(playerid,params[])
{
new newmd;
if(!sscanf(params, \"i\", newmd))
{
ChangeVehicleModel(playerid, GetPlayerVehicleID(playerid), newmd);
}
else SendClientMessage(playerid, -1, \"Használata: /asd [Vehicle ID]\");
return 1;
}