SA-MP Forums Archive
How to add nitros?? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to add nitros?? (/showthread.php?tid=631831)



How to add nitros?? - Advait - 05.04.2017

So guys i need a script which allows me to use nitros when i press /noson
And when I type/nos nitros will be disabled

And I wanted to know one more thing in other servers when I play and when I press tab the car jumps but in my server it doesn't what should I do??


Re: How to add nitros?? - Sew_Sumi - 05.04.2017

The tab thing must be a script that they've made, that's why your server doesn't do it.

This is also a place for help scripting, this isn't script requests.


Re: How to add nitros?? - AndreiWow - 05.04.2017

PHP код:
public OnPlayerCommandText(playerid,cmdtext[])
{
  if(!
strcmp(cmdtext,"/nos",true))
  {
    if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xff0000ff,"You must be in a vehicle!");
    
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
    
SendClientMessage(playerid,0x00ff00ff,"Nitro added!"); //No idea what colour that is though.
    
return 1;
  }
  return 
0;