11.03.2012, 12:23
Код:
new Neon[ MAX_VEHICLES ] = { -1, ... }; CMD:neon( playerid, params[ ] ) { Neon[ GetPlayerVehicleID( playerid ) ] = CreateObject( ... ); AttachObjectToVehicle( Neon[ GetPlayerVehicleID( playerid ) ] ), GetPlayerVehicleID( playerid ), ... ); return 1; } public OnVehicleSpawn( vehicleid ) { if( Neon[ vehicleid ] != -1 ) DestroyObject( Neon[ vehicleid ] ), Neon[ vehicleid ] = -1; return 1; }
I hope you get it.