Deejaybwg Posted June 24, 2011 Report Share Posted June 24, 2011 Cum fac atunci cand apas "2" sa nu se mai tuneze masina? Doar sa ii adauge nitro la masina atat.Cum fac? Si unde este chestia asta? www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
scr3ws0f7 Posted June 24, 2011 Report Share Posted June 24, 2011 cauti si tu prin server unde gasesti forward si pui si tu sub elforward 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></a> Link to comment Share on other sites More sharing options...
scr3ws0f7 Posted June 25, 2011 Report Share Posted June 25, 2011 Lock i'am facut eu... <a href=http://devilone.ro></a> Link to comment Share on other sites More sharing options...
Deejaybwg Posted June 25, 2011 Author Report Share Posted June 25, 2011 Daca nu ai vazut, eu cand apas "2" imi tuneaza masina. Vreau cand apas pe "2" sa-mi adauge nitro si ATAT.Cum ai facut tu, mi-o tuneaza si imi apare pe ecran "Nitro".. www.youtube.com/thebwgg Link to comment Share on other sites More sharing options...
Ryder_RO Posted June 25, 2011 Report Share Posted June 25, 2011 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); } Link to comment Share on other sites More sharing options...
Nr1FANEX Posted June 25, 2011 Report Share Posted June 25, 2011 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 More sharing options...
Question
Deejaybwg
Cum fac atunci cand apas "2" sa nu se mai tuneze masina? Doar sa ii adauge nitro la masina atat.
Cum fac? Si unde este chestia asta?
www.youtube.com/thebwgg
Link to comment
Share on other sites
5 answers to this question
Recommended Posts