Miscellany
public text v1 · immutable if(strcmp(cmd, "/ahealcar", true) == 0)
{
new carhealth;
new carhealthmsg[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Usage: /ahealcar [amount]");
return 1;
}
carhealth = strval(tmp);
SetVehicleHealth(GetPlayerVehicleID(playerid),carhealth);
format(carhealthmsg,sizeof(carhealthmsg),"Car health set to: %d",carhealth);
SendClientMessage(playerid,COLOR_YELLOW,carhealthmsg);
}