19.01.2012, 15:00
Код:
#include <a_samp> public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid)) { SetTimerEx("RVehicle", 20000, false, "i", playerid); return 1; } return 1; } forward RVehicle(playerid); public RVehicle(playerid) { new currentveh; // flip new Float:angle; // flip currentveh = GetPlayerVehicleID(playerid); // flip GetVehicleZAngle(currentveh, angle); // flip SetVehicleZAngle(currentveh, angle); // flip SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0); RepairVehicle(GetPlayerVehicleID(playerid)); PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0); return 1; }