Will this work
#8

Quote:
Originally Posted by MORJAN1122
Посмотреть сообщение
do like this
Код:
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;
}
and you cant set500000 becuse full health is 1000 see this WIKI SetVehicleHealth
You can manage the value of the health , wiki samp saying full health for the vehicle equal 1000that's not mean can't go above 1000, same thing with SetPlayerHealth for health equal to 100 but you can set his health to whatever you want.
Reply


Messages In This Thread
Will this work - by kingcrome - 13.12.2013, 19:35
Re: Will this work - by SilentSoul - 13.12.2013, 19:39
Re: Will this work - by MORJAN1122 - 13.12.2013, 19:40
Re: Will this work - by Vince - 13.12.2013, 19:41
Re: Will this work - by tuitalker - 13.12.2013, 19:42
Re: Will this work - by xVIP3Rx - 13.12.2013, 19:42
Re: Will this work - by kingcrome - 13.12.2013, 19:43
Re: Will this work - by SilentSoul - 13.12.2013, 19:44
Respuesta: Re: Will this work - by Gryphus One - 13.12.2013, 19:47
Re: Will this work - by Hansrutger - 13.12.2013, 19:49

Forum Jump:


Users browsing this thread: 2 Guest(s)