SA-MP Forums Archive
*** Terrible Title Removed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** Terrible Title Removed (/showthread.php?tid=387799)



*** Terrible Title Removed - Smith_Jim - 26.10.2012

my player can use gun in car out window,they press Horn and Q and E and key_fire,everybody help me!how to make them no work ??


Re: help me!plz fix this bug - JaKe Elite - 26.10.2012

PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    if(
newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
        
SetPlayerArmedWeapon(playerid0);
    }
    return 
1;




Re: help me!plz fix this bug - Smith_Jim - 26.10.2012

And if he sellgun in car,how to fix?make this in cmd /sellgun?
if(newstate != PLAYER_STATE_DRIVER || newstate != PLAYER_STATE_PASSENGER)
But this is trouble,i ill make them (retrun 0)