Autotuning?
#3

ok, sorry for zcmd, cuz im using it..
Quote:

COMMAND:tune(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid))
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You need vehicle, to use this command!", "Close", "Close");
return 1;}
#pragma unused params
if(Tuning[playerid] == 1){ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You can use this command now!", "Close", "Close"); return 1;}
Tuning[playerid] = 1;
RepairVehicle(GetPlayerVehicleID(playerid));
AddVehicleComponent(GetPlayerVehicleID(playerid), 1087);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
AddVehicleComponent(GetPlayerVehicleID(playerid), 1080);
SetTimerEx("Tune", 60000*5, false, "i", playerid);
return 1;
}

than top of script:
Quote:

forward Tune(playerid);
new Tuning [ MAX_PLAYERS ];

and somewhere
Quote:

public Tune(playerid)
{
Tuning[playerid] = 0;
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You can use command /tune!", "Close", "Close");
return 1;
}

P.S: this cmd players can use only 1time per 5min.
Reply


Messages In This Thread
Autotuning? - by Face9000 - 19.09.2010, 16:10
Re: Autotuning? - by Face9000 - 20.09.2010, 12:25
Re: Autotuning? - by Gh0sT_ - 20.09.2010, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)