Jump to content
  • 0

Ajutati-ma va rog



5 answers to this question

Recommended Posts

  • 0

noi am putea sa te ajutam dar nu stim cum functioneaza exact sistemul tau de vehicule, vezi la functia de spawnare a unui singur vehicul si incearca sa faci pentru toate odata eu asa am facut


uite comanda mea dar nu cred ca ar ajuta cu ceva

CMD:spawnallcars(playerid, params[])
	if(GetPlayerVehicles(playerid) < 3) return SCM(playerid, COLOR_YELLOW2, "{FFB870}Trebuie sa ai macar trei vehicule pentru a putea folosi comanda!");
	new spawn = 0;
	for(new i = 0; i < 10; i++)
		if(PlayerInfo[playerid][pCarKey][i] > 0 && CarInfo[PlayerInfo[playerid][pCarKey][i]][cSpawned] == 0)
			new vsid = PlayerInfo[playerid][pCarKey][i];
			new carid = CreateVehicleEx(CarInfo[vsid][cModel],CarInfo[vsid][cLocationx],CarInfo[vsid][cLocationy],CarInfo[vsid][cLocationz],CarInfo[vsid][cAngle],CarInfo[vsid][cColorOne],CarInfo[vsid][cColorTwo],-1);
			UpdateVehicleDamageStatus(carid, CarInfo[vsid][cDamage][0], CarInfo[vsid][cDamage][1], CarInfo[vsid][cDamage][2], CarInfo[vsid][cDamage][3]);
			SwitchKey[playerid] = 1;
			Gas[carid] = CarInfo[vsid][cFuel];
			SetVehicleHealth(carid, CarInfo[vsid][cHealth]);
			CarInfo[vsid][cSpawned] = carid;
			CarInfo[vsid][cTime] = 900;
			EngineSTATE[carid] = 0;
	if(spawn != 0) SCM(playerid,COLOR_VEHICLE,"Ti-ai spawnat toate vehiculele personale.");
	return 1;


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.