Jump to content
  • 0




cum pot face systemul/comenzile astea

/spawncar ID Color1 Color2

/despawnallcar - despawnceaza toate vehiculele create la/spawncar

/despawncar - desapwneaza doar vehiculul spawnat la /spawncar cand stai in el

www.codeup.ro / www.codeup.ro/forum

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Ok. Ceva basic, fara restrictii pe admin, ti le pui singur.

new spawnedCars[MAX_VEHICLES];
CMD:spawncar(playerid, params[]){
	new model, color1, color2;
	if(sscanf(params, "iii", model, color1, color2)) return SendClientMessage(playerid, -1, "Syntax: /spawncar [model] [color1] [color2]");
	new Float: X, Float: Y, Float: Z, Float: Angle;
	GetPlayerPos(playerid, X,Y,Z);
	new car = CreateVehicle(model, X+3,Y,Z, Angle, color1, color2, -1);
	spawnedCars[car] = 1;
	return 1;

CMD:destroycars(playerid, params[]){
	for(new i = 0; i < MAX_VEHICLES; ++i){
    	if(spawnedCars[i] == 1){
         	spawnedCars[i] = 0;
  	return 1;


Edited by andrei9971
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.