Quote:
Originally Posted by sameer419
pawn Код:
#include <a_samp>
#define CZERWONY 0xFF0000FF #define ZIELONY 0x00FF00FF
forward RepairVehicle(playerid);
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys & KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid)) { SetTimerEx("RVehicle", 1000, 60000, "i", playerid); return 1; }
return 1; } 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; }
|
That will only delay the repair by 1 second.... And your usage of SetTimerEx is wrong:
pawn Код:
SetTimerEx("RVehicle", 1000, 60000, "i", playerid);
should be:
pawn Код:
SetTimerEx("RVehicle", 1000, false, "i", playerid);