GTA-Center.com » Forum
http://www.gta-center.com/forums/

[GUIDA] Come disattivare il drive-by su 0.3c
http://www.gta-center.com/forums/viewtopic.php?f=40&t=444
Pagina 1 di 1

Autore:  SNaKe_OlD [ 19/12/2010, 14:27 ]
Oggetto del messaggio:  [GUIDA] Come disattivare il drive-by su 0.3c

= Come disattivare il drive-by su 0.3c =

Introduzione:
In questo topic impareremo come si elimina la funzione drive-by SOLO su 0.3c

Codice:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(playerid, 0);
    return 1;
}



Spiegazione
Aggiungendo questo script al OnPlayerStateChange quando un player cercherà di sparare dall'auto o dalla moto, l'arma che ha in mano verrà sostituita con il pugno.

Fonte: http://forum.sa-mp.com/showthread.php?t=200697

Autore:  Giovanni94m [ 19/12/2010, 14:32 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Breve ma utile. Ottimo snake

Autore:  SNaKe_OlD [ 19/12/2010, 14:35 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

grazie :P

Autore:  Peppinux AKA Peppe_Stasu [ 19/12/2010, 14:54 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Abbastanza semplice ma pur sempre utile ;).

Autore:  Angelo [ 19/12/2010, 17:01 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Molto Utile ;)

Autore:  barletheking [ 19/12/2010, 23:25 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Comodo per chi non vuole minigun o cagate varie in driveby :P

Autore:  Peppinux AKA Peppe_Stasu [ 19/12/2010, 23:40 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Barle ti ricordo che non funzionano tutte le armi col Drive-By. Io ho provato col Lanciafiamme e non andava infatti :ghgh:.

Autore:  barletheking [ 19/12/2010, 23:42 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Lo so lo so, ci mancherebbe altro D:

Autore:  Peppe [ 19/12/2010, 23:49 ]
Oggetto del messaggio:  Re: [GUIDA] Come disattivare il drive-by su 0.3c

Codice:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
       new
          weapon, ammo;
       GetPlayerWeaponData(playerid, 4, weapon, ammo);
       if(weapon)
       {
          SetPlayerArmedWeapon(playerid, 0);
       }
    }
    return 1;
}


Questo per lasciare solo le mitragliette utilizzabili come le vecchie versioni.

Pagina 1 di 1 Tutti gli orari sono UTC + 1 ora [ ora legale ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/