Jump to content
  • 0

Tuning


Deejaybwg

Question

5 answers to this question

Recommended Posts

cauti si tu prin server unde gasesti forward si pui si tu sub el

forward NitroReset();
public OnGameModeInit()
{
    SetTimer("NitroReset", 3000, 1);
    return 1;
}
undeva mai jos in gm 8-|
public NitroReset()
{
	for(new i = 0; i<MAX_PLAYERS; i++)
	{
	    if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i)))
		{
    		new vehicle = GetPlayerVehicleID(i);
		    AddVehicleComponent(vehicle, 1010);
		}
	}
}
asta e varianta 1 varianta 2: cauti in gm public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   if ((newkeys==KEY_SUBMISSION && KEY_FIRE )&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
    {
    new VehicleID = GetPlayerVehicleID(playerid);
    PlayerPlaySound(playerid,1133,0.0,0.0,0.0); //play mod sound
    AddVehicleComponent(VehicleID, 1010);
    RepairVehicle(VehicleID);
    SetVehicleHealth(VehicleID, 1000);
    GameTextForPlayer(playerid,"~b~Nitro",4000,1);
    }
    return 1;
}

<a href=http://devilone.ro>

devilone-banner.png</a>

Link to comment
Share on other sites

uite

sa iti de nitro de click

 if(newkeys & KEY_FIRE && IsPlayerInAnyVehicle(playerid))
	{
		if(!IsNosVehicle(GetPlayerVehicleID(playerid))) return 1;
		AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
		PlayerPlaySound(playerid, 1133 ,0, 0, 0);
		GameTextForPlayer(playerid,"~g~Nitro",4000,1);
	}
si daca vrei de 2
 if(newkeys & KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid))
	{
		if(!IsNosVehicle(GetPlayerVehicleID(playerid))) return 1;
		AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
		PlayerPlaySound(playerid, 1133 ,0, 0, 0);
		GameTextForPlayer(playerid,"~g~Nitro",4000,1);
	}

468833_437698_362328_hiphop.jpg
Link to comment
Share on other sites

Trebuie sa cauti în gamemode frate...

Daca nu ne dai functia, cum vrei sa te ajutam?

Scoate de la OnPlayerKeyStateChange tot ce vezi cu "AddVehicleComponent(vehicleid, ...);"

în afara de "AddVehicleComponent(aici depinde ce ai, 1010);"

1010 = nos velocity id, la masina (nitro) . Deci aia o lasi...

Sper c-ai înteles. BAFTA!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.