26.11.2011, 10:11
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/repair", cmdtext, true, 7) == 0) {
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000.0);
SendClientMessage(playerid, COLOR_GREEN, "-VEHICLE INFO- The vehicles engine has been fully repaired.");
return 1;
}
return 0;
}