SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 07/04/2012, 05:23 PM   #1
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Elegy Turbo [v1] - Updated! SA:MP First Turbo Script.

Elegy Turbo [v1] - Updated!


Hello, again. Today, i am presenting my a very simple script called "Elegy Turbo". Well, its so simple and is made by attached object to vehicle. PS : I just created for fun and was bored. And just thought to release this.
PS 2 : This FS does not reflect my level of scripting, This was created for just FUN. So, please NO racism.


Intro

Its just a simple FS which attaches a turbo type exhausts on your bonnet with fire. This also works for the vehicle "Blade" and thanks to clavador.

ScreenShots





Plans

- NONE now. Suggestion would be helpful.

Updated to v1 :

Few things are changed.
- Now, flames would come when pressed LMB.
- Variables Used.
- Now, attachments would be destroyed when player leaves the vehicle.
- Neat and clean code now.

PS : Didn't noticed when this fun was converted into interest.

PS2 : Seems this is the only script that haven't been created yet. Cheers Mate

Credits

- Everything is done by - ME!

Downloads

Thing you've been waiting for
pawn Code:
/*
                          Ronaldo_raul™ Productions Presents-
________________________________________________________________________________
                                   Elegy Turbo's!
//==============================================================================
-->Do Not Re-Release This Script Without My Permission.
-->DO Not Claim This Script As Your Own.
-->Do Not Sell This Script.
-->Suggestion,Bugs........PM ME ! Or Post Them On The Release Thread.

                      This FilterScript is made by Ronaldo_raul™


                                  Copyright © 2012-2013
                  *******Keep All credits in the filterscript.*******

//==============================================================================*/

//==============================================================================
//                          Defines And Include
//==============================================================================
#define FILTERSCRIPT

#include < a_samp >
#include < zcmd >


#define INFO    0x0080FFFF
#define WHITE   "{FFFFFF}"
#define RED "{FF0000}"
#define GREEN   "{80FF00}"

new HaveTurbo [ MAX_PLAYERS ] ;
new Fire [ 14 ] ;
new Ex [ 7 ] ;
//==============================================================================
//==============================================================================
public OnFilterScriptInit()
{
    print("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
    print(" Turbo Fire - FS By Ronaldo_raul\n Loaded.");
    print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
    return 1;
}

public OnPlayerConnect(playerid)
{
    HaveTurbo [ playerid ] = 0 ;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    HaveTurbo [ playerid ] = 0 ;
    return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    if ( HaveTurbo [ playerid ] == 1 )
    {
        DestroyObject ( Ex [ 0 ] ) ;
        DestroyObject ( Ex [ 1 ] ) ;
        DestroyObject ( Ex [ 2 ] ) ;
        DestroyObject ( Ex [ 3 ] ) ;
        DestroyObject ( Ex [ 4 ] ) ;
        DestroyObject ( Ex [ 5 ] ) ;
        DestroyObject ( Ex [ 6 ] ) ;
        HaveTurbo [ playerid ] = 0 ;
    }
    return 1;
}

CMD:turbo ( playerid , params [] )
{
    if ( HaveTurbo [ playerid ] == 1 ) return SendClientMessage ( playerid , INFO , "(INFO) "#WHITE"You already have "#RED"turbo's "#GREEN"installed." ) ;
    if ( IsPlayerInAnyVehicle ( playerid ) && GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) == 562 )
    {
        Ex [ 0 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 0 ], GetPlayerVehicleID(playerid), 0.089999,1.275000,-0.505000,-123.119987,-1.620000,-270.719848);
        Ex [ 1 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 1 ], GetPlayerVehicleID(playerid), 0.089999,1.564999,-0.505000,-123.119987,-1.620000,-270.719848);
        Ex [ 2 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 2 ], GetPlayerVehicleID(playerid), 0.059999,1.854999,-0.505000,-123.119987,-1.620000,-270.719848);
        Ex [ 3 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 3 ], GetPlayerVehicleID(playerid), 0.059999,1.854999,-0.505000,-123.119987,-1.620000,-270.719848);
        Ex [ 4 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 4 ], GetPlayerVehicleID(playerid), -0.045000,1.854999,-0.505000,-123.119987,3.779998,-88.020568);
        Ex [ 5 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 5 ], GetPlayerVehicleID(playerid), -0.075000,1.529999,-0.505000,-123.119987,9.540000,-83.700561);
        Ex [ 6 ] = CreateObject(1018,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Ex [ 6 ], GetPlayerVehicleID(playerid), -0.095000,1.275000,-0.505000,-123.119987,-1.620000,-451.260925);
        HaveTurbo [ playerid ] = 1 ;
    }
    else SendClientMessage ( playerid , INFO , "(INFO) "#WHITE"You need to be in an "#RED"elegy "#WHITE"to use this "#GREEN"command." ) ;
    return 1 ;
}


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER || GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) == 562 )
    {
        if ( ( ( ( newkeys & ( 4 ) ) == ( 4 ) ) && ( ( oldkeys & ( 4 ) ) != ( 4 ) ) ) )
        {
        Fire [ 0 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 0 ], GetPlayerVehicleID(playerid), -0.520000,1.205000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 1 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 1 ], GetPlayerVehicleID(playerid), -0.520000,1.365000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 2 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 2 ], GetPlayerVehicleID(playerid), -0.520000,1.505000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 3 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 3 ], GetPlayerVehicleID(playerid), -0.520000,1.665000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 4 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 4 ], GetPlayerVehicleID(playerid), -0.520000,1.205000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 5 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 5 ], GetPlayerVehicleID(playerid), -0.599999,1.800000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 6 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 6 ], GetPlayerVehicleID(playerid), -0.599999,1.950000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 7 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 7 ], GetPlayerVehicleID(playerid), 0.559999,1.950000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 8 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 8 ], GetPlayerVehicleID(playerid), 0.559999,1.790000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 9 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 9 ], GetPlayerVehicleID(playerid), 0.539999,1.660000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 10 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 10 ], GetPlayerVehicleID(playerid), 0.539999,1.490000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 11 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 11 ], GetPlayerVehicleID(playerid), 0.539999,1.330000,-1.174999,0.000000,0.000000,0.000000);
        Fire [ 12 ] = CreateObject(18693,0,0,-1000,0,0,0,100);
        AttachObjectToVehicle(Fire [ 12 ], GetPlayerVehicleID(playerid), 0.539999,1.160001,-1.174999,0.000000,0.000000,0.000000);
        }
        else if ( ( ( ( newkeys & ( 4 ) ) != ( 4 ) ) && ( ( oldkeys & ( 4 ) ) == ( 4 ) ) ) )
        {
        DestroyObject ( Fire [ 0 ] ) ;
        DestroyObject ( Fire [ 1 ] ) ;
        DestroyObject ( Fire [ 2 ] ) ;
        DestroyObject ( Fire [ 3 ] ) ;
        DestroyObject ( Fire [ 4 ] ) ;
        DestroyObject ( Fire [ 5 ] ) ;
        DestroyObject ( Fire [ 6 ] ) ;
        DestroyObject ( Fire [ 7 ] ) ;
        DestroyObject ( Fire [ 8 ] ) ;
        DestroyObject ( Fire [ 9 ] ) ;
        DestroyObject ( Fire [ 10 ] ) ;
        DestroyObject ( Fire [ 11 ] ) ;
        DestroyObject ( Fire [ 12 ] ) ;
        }
    }
    return 1;
}

public OnFilterScriptExit()
{
    print("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");
    print(" Turbo Fire - FS By Ronaldo_raul\n UnLoaded.");
    print("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
    DestroyObject ( Fire [ 0 ] ) ;
    DestroyObject ( Fire [ 1 ] ) ;
    DestroyObject ( Fire [ 2 ] ) ;
    DestroyObject ( Fire [ 3 ] ) ;
    DestroyObject ( Fire [ 4 ] ) ;
    DestroyObject ( Fire [ 5 ] ) ;
    DestroyObject ( Fire [ 6 ] ) ;
    DestroyObject ( Fire [ 7 ] ) ;
    DestroyObject ( Fire [ 8 ] ) ;
    DestroyObject ( Fire [ 9 ] ) ;
    DestroyObject ( Fire [ 10 ] ) ;
    DestroyObject ( Fire [ 11 ] ) ;
    DestroyObject ( Fire [ 12 ] ) ;
    DestroyObject ( Ex [ 0 ] ) ;
    DestroyObject ( Ex [ 1 ] ) ;
    DestroyObject ( Ex [ 2 ] ) ;
    DestroyObject ( Ex [ 3 ] ) ;
    DestroyObject ( Ex [ 4 ] ) ;
    DestroyObject ( Ex [ 5 ] ) ;
    DestroyObject ( Ex [ 6 ] ) ;
    return 1;
}



// Ronaldo_raul™ Productions
// Copyright © 2012-2013
//Do Not REMOVE ANY CREDITS!

Enjoy!

Report bug, comment and rate.


What next ?


If you guys can suggest me something ? And thing to be updated in this ?

My Next Project is a Drop System. Soon will be introduced to the SA:MP community. And believe me this gonna be unique as this one



Last edited by Ronaldo_raul™; 08/04/2012 at 04:24 PM.
Ronaldo_raul™ is offline   Reply With Quote
Old 07/04/2012, 05:35 PM   #2
Toreno
Gangsta
 
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: Elegy Turbo [v0.1]

W-O-W, just tested it, and it looks A-W-S-O-M-E, so gonna use it! Nice release, good job, Ronaldo_raul™.
Toreno is offline   Reply With Quote
Old 07/04/2012, 05:40 PM   #3
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Elegy Turbo [v0.1]

Quote:
Originally Posted by Toreno View Post
W-O-W, just tested it, and it looks A-W-S-O-M-E, so gonna use it! Nice release, good job, Ronaldo_raul™.
Glad you liked it

Thank you.
Ronaldo_raul™ is offline   Reply With Quote
Old 07/04/2012, 05:56 PM   #4
iMaxRobot
Big Clucker
 
iMaxRobot's Avatar
 
Join Date: Mar 2012
Posts: 80
Reputation: 12
Default Re: Elegy Turbo [v0.1]

Well that's Fantastic..
Which Hud you use xD?
__________________
▌│█║▌║▌║▌│█║▌║▌║║▌║▌║█│▌║▌║▌║█│▌
▌│█║▌║▌║ ησ ηεε∂ тσ +яερ мε εvεη ιғ ι нεℓρε∂ үσυ , вεcαυsε α тяυε нεℓρεя ηεvεя αsкs ғσя яεωαя∂ :∂
▌│█║▌║▌║ αи∂ ∂σи'т fσяgєт тσ яєρ мє ιf уσυя gιяℓfяιєи∂ ιѕ ѕєχу <3
▌│█║▌║▌║ ωε ∂ση'т ηεε∂ мσяε мαρρεяs, тнαηкs ғσя үσυя sωεεт яερℓιεs.
▌│█║▌║▌║ I'm an Assasin who is invincible.
▌│█║▌║▌║▌│█║▌║▌║║▌║▌║█│▌║▌║▌║█│▌
iMaxRobot is offline   Reply With Quote
Old 07/04/2012, 05:57 PM   #5
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Elegy Turbo [v0.1]

Quote:
Originally Posted by iMaxRobot View Post
Well that's Fantastic..
Which Hud you use xD?
Thank you.

Thats a cleo mod.
Ronaldo_raul™ is offline   Reply With Quote
Old 07/04/2012, 05:58 PM   #6
davve95
High-roller
 
davve95's Avatar
 
Join Date: Nov 2009
Location: Sweden
Posts: 3,138
Reputation: 234
Default Re: Elegy Turbo [v0.1]

Looks nice!, Good job .
davve95 is offline   Reply With Quote
Old 07/04/2012, 05:59 PM   #7
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Elegy Turbo [v0.1]

Quote:
Originally Posted by davve95 View Post
Looks nice!, Good job .
Thank you
Ronaldo_raul™ is offline   Reply With Quote
Old 07/04/2012, 06:01 PM   #8
DonWade
Big Clucker
 
DonWade's Avatar
 
Join Date: Nov 2011
Location: Bosna i Hercegovina || ZENICA 032 ||
Posts: 160
Reputation: 17
Default Re: Elegy Turbo [v0.1]

Not bad.
__________________
DonWade is offline   Reply With Quote
Old 07/04/2012, 06:05 PM   #9
Ronaldo_raul™
Gangsta
 
Ronaldo_raul™'s Avatar
 
Join Date: Jun 2010
Location: .
Posts: 999
Reputation: 67
Default Re: Elegy Turbo [v0.1]

Quote:
Originally Posted by DonWade View Post
Not bad.
I take it as POSITIVE comment

Suggestion to take it to GOOD ?
Ronaldo_raul™ is offline   Reply With Quote
Old 07/04/2012, 06:11 PM   #10
jotan.
Huge Clucker
 
Join Date: Oct 2010
Posts: 218
Reputation: 17
Default Re: Elegy Turbo [v0.1]

Nice,keep it up
__________________
jotan. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda]Turbo RPG wevertonneves Português/Portuguese 5 29/10/2011 05:22 PM
[PEDIDO]Turbo [Dk]TuReTOo Português/Portuguese 20 22/06/2011 06:19 PM
/elegy command (spawns an elegy) HELP, sorry for one more thread. Simmeey Help Archive 9 20/04/2009 12:48 AM


All times are GMT. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.