Jump to content
  • 0

Ajutor la Masini Personale


Question

Posted

am in GameMod asa


public IsAnOwnableCar(vehicleid)
{
if(vehicleid >= 184 && vehicleid <= 308) { return 1; }
return 0;
}

si el imi citeste masinile din GM , create cu AddStaticVehicleEx

as vrea sa citeasca masinile din cars.cfg

in cars.cfg sunt vro 200 masini :)

1 answer to this question

Recommended Posts

Posted

Titlul + RP.

Cauta prin GM variabila care retine vehiculul din cars.cfg, apoi fa un loop la IsAnOwnableCar cu variabila, ceva gen

public IsAnOwnableCar( vehicleid )
{
        for( new veh = 0; veh < MAX_OWNABLE_CARS; veh ++ )
	        if( vehicleid == OwnableCar[ veh ] ) return 1;

	return 0;
}

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.