[Pedido] Anti 2-2-2
#8

Quote:
Originally Posted by ipsBruno
View Post
Tenta isto, boa sorte.

pawn Code:
public OnPlayerUpdate(playerid) {


    static wepState ;

    wepState = GetPlayerWeaponState (playerid);

    if( WEAPONSTATE_LAST_BULLET  == wepState || wepState   == WEAPONSTATE_MORE_BULLETS || WEAPONSTATE_RELOADING  ==   wepState) {
        return true.
    }

    static wepId ;

    wepId = GetPlayerWeapon(playerid);
 
    if ( wepId  != SAWN_ OFFID ) {
        SetPVarInt( playerid, "lastWeapon", wepId );
        SetPVarInt( playerid, "lastTimewep", gettime() );
        return true;
    }

    else {
        if ( gettime () - GetPVarInt( playerid, "lastTimewep") < 2 && GetPVarInt( playerid, "lastWeapon" ) !=  SAWN_ OFFID ) {
            SetPVarInt( playerid, "lastWeapon", SAWN_ OFFID);
            SetPVarInt( playerid, "lastTimewep", 0);
            return true;
        }
    }


    return true ;
}
ok, vlws
Reply


Messages In This Thread
Anti 2-2-2 - by Crueliz0n - 31.08.2012, 23:49
Re: Anti 2-2-2 - by matheus280 - 31.08.2012, 23:58
Re: Anti 2-2-2 - by Crueliz0n - 01.09.2012, 00:03
Respuesta: Anti 2-2-2 - by ipsBruno - 01.09.2012, 00:04
Re: Anti 2-2-2 - by matheus280 - 01.09.2012, 00:06
Re: Respuesta: Anti 2-2-2 - by Crueliz0n - 01.09.2012, 00:07
Respuesta: Anti 2-2-2 - by ipsBruno - 01.09.2012, 00:14
Re: Respuesta: Anti 2-2-2 - by Crueliz0n - 01.09.2012, 00:15
Respuesta: Anti 2-2-2 - by ipsBruno - 01.09.2012, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)