Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted

Ma refeream adica, daca scriu comanda in joc de exemplu ( /car + ID-ul vehiculului) sa imi spawneze acel vehicul.

Dar ceea ce vreau eu e ca sa pot introduce in comanda id-ul vehiculului.

Si pentru (/car + (NUMELE VEHICULULUI)) sa pot introduce numele acelui vehicul de exemplu: /car infernus , dupa care sa imi spawneze un infernus sau : /car bullet si sa imi spawneze bullet-ul.

  • 0
Posted

Am rezolvat treaba cu /car + ID, dar acuma cum rezolv treaba cu /car + NUMELE_MASINII, vreau sa fac comanda asta care, in prim plan sa scaneze dupa numele masinii si daca este gasita sa o spawneze, si mai am o intrebare pentru a face o functie de scanare prima data trebuie sa am numele masinilor definite cu id-ul acestora ?

  • 0
Posted

 

YCMD:dd(playerid,params[],help) {
	new car[32];
   	if(sscanf(params, "s[32]",car)) return SCM(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/dd <car name>");
    for(new v; v < sizeof(NumeVehicul); v++)
    {
        if(strcmp(NumeVehicul[v],car,true) == 0)
        {
        	new Float:x,Float:y,Float:z;GetPlayerPos(playerid, x, y, z);
			CreateVehicle(v+400, x, y, z, 0, 5, 5, -1, 0);
        }
    }
	return 1;
}
               
                                       
acel stock numevehicul posibil ca in gm tau sa fie aVehicleNames
                                       

 

aqpUjAc.png

 

 

 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.