Jump to content
  • 0

pomoc Nitro


Guest zdenek

Dotaz

Delam si do modu /nitro vse mi jede akorat kdyz hraju a dam /nitro tak se mi do auta da nitro a kdyz zmacku s tak se mi da pric nvm co stim.

 

Mam to takhe:

 

new Menu:xnitro;

 

if(strcmp(cmdtext, "/nitro", true) == 0) {

ShowMenuForPlayer(xnitro,playerid);

return 1;

}

 

xnitro = CreateMenu("Nitro", 2, 50.0, 180.0, 200.0, 200.0);

 

AddMenuItem(xnitro, 0, "Nitro");

AddMenuItem(xnitro, 1, "2");

AddMenuItem(xnitro, 0, "Nitro");

AddMenuItem(xnitro, 1, "5");

AddMenuItem(xnitro, 0, "Nitro");

AddMenuItem(xnitro, 1, "10");

 

new Menu:current;

current = GetPlayerMenu(playerid);

if(current == xnitro)

{

switch(row)

{

case 0:{

new xid = GetPlayerVehicleID(playerid);

AddVehicleComponent(xid,1009);

}

case 1:{

new xid = GetPlayerVehicleID(playerid);

AddVehicleComponent(xid,1008);

}

case 2:{

new xid = GetPlayerVehicleID(playerid);

AddVehicleComponent(xid,1010);

}

}

}

 

Link to comment
Share on other sites

2 odpovědí na tuto otázku

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...