02.04.2014, 16:32
PHP код:
CMD:setcarhp(playerid, params[])
{
new HP;
if(sscanf(params, "d", HP)) return SendClientMessage(playerid, COLOR_ORANGE, "USAGE: /HP [value 1 - 100]");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, HP);
SendClientMessage(playerid, COLOUR_ORANGE, "The vehicles engine has been fully repaired.");
return 1;
}