11.01.2015, 13:02
Код:
stock SetVehicleVelocityM(vehicleid,Float:x,Float:y,Float:z) { new playerid=INVALID_PLAYER_ID; foreach(new i = 0; i < MAX_PLAYERS; i++){ if(ivehicle[i] == vehicleid){ playerid = i; break; } } if(playerid != INVALID_PLAYER_ID){ new hizi = floatround(floatsqroot((x * x + y * y + z * z)) * 200.2); SetPVarInt(playerid,"sonhiz",hizi); } return SetVehicleVelocity(vehicleid,x,y,z); }