Neon System
#1

Please Help me!
How to add neon on car components ?
How to save the neon, even you're exit the server ?
Please i need guides and/or filterscript for Neon System!
Reply
#2

y_ini

i dunno if it's id will change after the vehicle got destroyed/respawned
pawn Код:
new neonid[ MAX_VEHICLES ];
//dialogresponse
//if dialogid == ...
//isplayerinanyvehicle
//attachobjecttovehicle ( idk how to use -.- )
new file[ 23 ]; format( file, 64, "v_%d.ini", GetPlayerVehicleID( playerid ) );
new INI:vehFile = INI_Open( file );
new colorid;
neonID[ GetPlayerVehicleID( playerid ) ] = listitem;

switch(listitem)
{
    case 0: colorid = 0; // button 0 ( the first button )
    case 1: colorid = 1; // button 1 ( the second button )

   // and so on
}

// OR A QUICKER WAY WITHOUT SWITCH:
colorid = listitem;

// or just use listitem without any vars in the code below

INI_WriteInt( vehFile, "NEON", listitem );

INI_Close( vehFile );

// onvehiclespawn
new file[ 23 ]; format( file, 23, "v_%d.ini", vehicleid );
if( fexist( file ) ) {
    INI_ParseFile( file, "parseneon", .bExtra = true, .extra = vehicleid );

    switch ( neonid[ vehicleid ] ) {
        case 0: //attachobject with color 0..
        // and so on
    }
}

return 1;

// below ur script
forward parseneon( vehicleid, name[ ], value[ ] );
public parseneon( vehicleid, name[ ], value[ ] )
{
    neonid[ vehicleid ] = INI_Int( "NEON" );

    return 1;
}
?

@vic that one doesnt save the neon afaik
Reply
#3

There's loads of Neonsystems.. Use the search button.. Works like a charm.

Here.

http://forum.sa-mp.com/search.php?searchid=3037033




....Getting fed up. This forum requires that you wait 120 seconds between posts. Please try again in 39 seconds.
Reply
#4

Quote:
Originally Posted by uprp
Посмотреть сообщение
There's loads of Neonsystems.. Use the search button.. Works like a charm.
to:

There's lot of Neonsystems.. Use the search button.. Works like a charm.
Код:
Getting fed up. This forum requires that you wait 120 seconds between posts. Please try again in 40 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)