Jump to content
  • 0

submission(2)= repair and add nos for vehicle


Guest farse

Question

submission(2)= repair and add nos for vehicle

Stiu ca se poate dar mie nu mio reusit

Are cine asa ceva? ;D

AM gasit :D

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
	new vehid = GetPlayerVehicleID(playerid);
	SetVehicleHealth(vehid,1000);
	AddVehicleComponent(vehid,1010);

}

return 1;
}

PS: dar daca is in nrg si apas 2 imi da crash ce trebe sa ii mai pun

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys==KEY_SUBMISSION)&&(IsPlayerInAnyVehicle(playerid))&&(GetPlayerState(playerid)==PLAYER_STATE_DRIVER))
{
	new vehid = GetPlayerVehicleID(playerid);
           if( GetVehicleModel(vehid) != 522 || GetVehicleModel(vehid) != 521 )
           {	
           SetVehicleHealth(vehid,1000);
	AddVehicleComponent(vehid,1010);
	}
}

return 1;
}

acolo und e 522 , 521, pui modelele de motociclete si deastea

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By Costin Mantea1
      Salutare ma ajutati va rog sa termin adaugarea de Vehicule pentru Clan, aici am  doar partea de Dialog:
       
    • By R4zvyy
      Salutare, am o problema cu vehiculele, atunci cand cumpar manual VIP, VIP Plus, Rainbow, stage si neon nu se salveaza

      ma ajuta careva?
    • By AndrewPawno 2
      Salutare Sa-mp.ro. Eu sunt LokyADV unii ma cunosc si sub numele de AndrewPawno, si as vrea sa va prezint server-ul MOON.SAPPHIRE.EU. Server-ul va avea update-uri mari in perioada ce urmeaza, Fondator & Staff Matur. Deschiderea va avea loc pe 30 Octombrie 2021 ora 19:30. Va asteptam in numar cat mai mare. Multumesc!
      Fondator : Andy
      Co-fondator : Adrian & Mollo
      Scripteri :  LokyADV(AndrewPawno) & NewTon RPG
      Panel/Forum : in curs de plata
      HostName: Moon.Saphire.eu | WORKING ON GAMEMODE|
      Address:  188.212.102.55:7777
      Players:  1 / 100
      Ping:     26
      Mode:  Moon.RPG, 26.10 (10:34)
      Language: RO/EN 
    • By [.E.m.O.]K1DDU
      * About server: http://forum.sa-mp.ro/index.php/topic/11457-amazing-stunt-world-v14-03x-join-for-fun/ [ No ADS xD] * Download Link: https://dl.dropboxusercontent.com/u/71987594/Amazing%20Stunt%20World%20%5BOfficial%5D.rar     'Enjoy
    • By nQeed
      https://youtu.be/rcE77VlPbfI
      o parere?
      Ionel#6666 // discord.
  • 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.