SetVehicleHealth Command Please Help
#2

Try this:
pawn Код:
CMD:setvehiclehealth(playerid, params[])
{
    if(PlayerData[ID][AdminLevel] >= 1)
    {
        new VehicleHealth;
        new vehicleid = GetPlayerVehicleID(playerid);
        if(sscanf(params, "f", VehicleHealth)) return SendClientMessage(playerid, COLOR_GREEN, "/setvehiclehealth [Health]");
        GetPlayerName(playerid,pname,sizeof(pname));
        new pstring[128];
        format(pstring,sizeof(pstring),"You have set your vehicle health to %f",VehicleHealth);
        SetVehicleHealth(vehicleid,VehicleHealth);
    }
    return 1;
}
Best regards!
Reply


Messages In This Thread
SetVehicleHealth Command Please Help - by Scripter12345 - 24.04.2012, 18:02
Respuesta: SetVehicleHealth Command Please Help - by [DOG]irinel1996 - 24.04.2012, 18:05
Re: SetVehicleHealth Command Please Help - by Claude - 24.04.2012, 18:07
Re: SetVehicleHealth Command Please Help - by Twisted_Insane - 24.04.2012, 18:12

Forum Jump:


Users browsing this thread: 2 Guest(s)