Clicking makes you boost?
#1

How can i make it so if you're name is 'Dildo_doz' and you click you gain speed?

i'm guessing its

new Name[MAX_PLAYERS];
Reply
#2

You can use Sasino's stock:
pawn Код:
stock AddVehicleSpeed(vid, Float:howmuch)
{
    static Float:T[3];
    GetVehicleVelocity(vid, T[0], T[1], T[2]);
    return SetVehicleVelocity(vid,T[0] * howmuch , T[1] * howmuch , T[2]);
}

public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) {
    if( newkeys & KEY_FIRE ) {
        if( IsPlayerInAnyVehicle( playerid ) ) {
            new bpName[ 24 ];
            GetPlayerName( playerid, bpName, 24 );
            if( !strcmp( bpName, "Dildo_doz", false, 9 ) ) {
                AddVehicleSpeed( GetPlayerVehicleID( playerid ), 5.0 );
            }
        }
    }
    return 1;
}
You can also change the ammount of how much it boosts you.
Reply
#3

Thanks can you help me on msn with some stuff, not alot just a little bit.
Reply
#4

Just post in scripting discussion, you can't post long codes on MSN.
Reply
#5

i was gonna paste bin em, where do i put that key chagne thing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)