Vehicle spawn with 5000hp
#1

how can i make it in my server then when i start the gm and then say /createveh 402 when it spawns it will have 5000 hp instead of 1000hp?
Reply
#2

pawn Код:
//COMMAND - This is an example.
{
    new Float:pPos[3];
    GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
    new vehicleid = CreateVehicle(402, pPos[0], pPos[1], pPos[2], 0.0, -1, -1, 60);
    SetVehicleHealth(vehicleid, 5000.0);// <
    return 1;
}
Reply
#3

but also things spawn like faction vehicles n stuff
Reply
#4

inside OnVehicleSpawn it could work. not tested.
Reply
#5

yea under onvehiclespawn doesnt work either
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)