add nos
#10

Quote:
Originally Posted by MadeMan
Did you try DJDhan code?
yes but same thing unknown command in game ..well i tried another that on a topic which they said worked...
Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" nos.");
	print("--------------------------------------\n");
new UnmodifiableVehicles[29] =
{
581,523,462,521,463,522,461,448,468,586,
509,481,510,472,473,493,595,484,430,453,
452,446,454,590,569,537,538,570,449
};

forward IsPlayerInInvalidNosVehicle( playerid );
public IsPlayerInInvalidNosVehicle( playerid )
{
new carid = GetPlayerVehicleID( playerid );
new carmodel = GetVehicleModel(carid);
for (new i = 0; i < sizeof( UnmodifiableVehicles ); i++ )
{
  if( carmodel == UnmodifiableVehicles[i] ) return 1;
}
return 0;
}

  if(strcmp("/nos", cmdtext, true) == 0)
   {
     if(IsPlayerInVehicle(playerid))
     {
        if(IsPlayerInInvalidNosVehicle(playerid))
        {
          SendClientMessage(playerid, COLOR_RED, "Sorry, you can't install NOS on this vehicle.");
        }
        else
        {
          AddVehicleComponent(vehicleid, 1010);
        }
     }
     else
     {
        SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle.");
     }
     return 1;
   }
#endif
but still unknown cmd :O
Reply


Messages In This Thread
add nos - by Abraham2nd - 16.06.2010, 11:27
Re: add nos - by Zero[S] - 16.06.2010, 11:28
Re: add nos - by Abraham2nd - 16.06.2010, 11:30
Re: add nos - by MadeMan - 16.06.2010, 11:31
Re: add nos - by Abraham2nd - 16.06.2010, 11:33
Re: add nos - by DJDhan - 16.06.2010, 11:33
Re: add nos - by Abraham2nd - 16.06.2010, 11:40
Re: add nos - by Abraham2nd - 16.06.2010, 11:53
Re: add nos - by MadeMan - 16.06.2010, 12:02
Re: add nos - by Abraham2nd - 16.06.2010, 12:10

Forum Jump:


Users browsing this thread: 2 Guest(s)