13.12.2013, 19:40
do like this
and you cant set500000 becuse full health is 1000 see this WIKI SetVehicleHealth
Код:
if(strcmp("/opcar", cmdtext, true) == 0)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000);
SendClientMessage(playerid, COLOUR_WHITE, "The vehicles engine has been fully repaired.");
return 1;
}
