buNNy Posted January 20, 2019 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 COMUNITATEA MEA DE RESURSE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^www.codeup.ro / www.codeup.ro/forum
0 andrei9971 Posted January 21, 2019 Posted January 21, 2019 Macar ai citit ce face a doua comanda? Da destroy la toate vehiculele spawnate de prima comanda.
0 andrei9971 Posted January 20, 2019 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
0 buNNy Posted January 21, 2019 Author Posted January 21, 2019 Si cum fac sa le despawnez toate vehiculele COMUNITATEA MEA DE RESURSE^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^www.codeup.ro / www.codeup.ro/forum
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
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now