buNNy Posted January 20, 2019 Report Share Posted January 20, 2019 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 Quote COMUNITATEA MEA DE RESURSE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^www.codeup.ro / www.codeup.ro/forum Link to comment Share on other sites More sharing options...
0 andrei9971 Posted January 21, 2019 Report Share Posted January 21, 2019 Macar ai citit ce face a doua comanda? Da destroy la toate vehiculele spawnate de prima comanda. Quote Link to comment Share on other sites More sharing options...
0 andrei9971 Posted January 20, 2019 Report Share Posted January 20, 2019 (edited) 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); GetPlayerFacingAngle(playerid,Angle); 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; DestroyVehicle(i); } } return 1; } Edited January 20, 2019 by andrei9971 Quote Link to comment Share on other sites More sharing options...
0 buNNy Posted January 21, 2019 Author Report Share Posted January 21, 2019 Si cum fac sa le despawnez toate vehiculele Quote COMUNITATEA MEA DE RESURSE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^www.codeup.ro / www.codeup.ro/forum Link to comment Share on other sites More sharing options...
Question
buNNy
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
COMUNITATEA MEA DE RESURSE
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
www.codeup.ro / www.codeup.ro/forum
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.