How to edit system Driver By - 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: How to edit system Driver By (
/showthread.php?tid=657722)
How to edit system Driver By -
linhpro200294 - 14.08.2018
Hi, I'm having a problem with my car's shooting system, I'm wondering how to shoot guns in all the guns. If anyone knows please help me improve it, thanks.
Code:
Quote:
if(IsPlayerInAnyVehicle(i)) {
if(GetPlayerState(i) == PLAYER_STATE_PASSENGER || PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0);
else if(PlayerInfo[i][pGuns][4] == 0) SetPlayerArmedWeapon(i, 0);
else SetPlayerArmedWeapon(i, 29);
}
|
Re: How to edit system Driver By -
CodeStyle175 - 14.08.2018
what?
Re: How to edit system Driver By -
denNorske - 14.08.2018
Simply remove the "SetPlayerArmedWeapon" part, or remove the entire code
Re: How to edit system Driver By -
linhpro200294 - 14.08.2018
Remove Setplayerarmedweapon in part, I tried removing all the code but it failed
Re: How to edit system Driver By -
linhpro200294 - 14.08.2018
Remove SetPlayerArmedWeapon in which paragraph you can specify it to help me?
Re: How to edit system Driver By -
linhpro200294 - 15.08.2018
I tried to erase all but when I entered the game I tested it is faulty, I have an M4 weapon while out in the car and when the press G on the car and down the car it lost the gun. If someone knows how to fix this please help me.
Re: How to edit system Driver By -
Khoaa - 19.08.2018
You have been made? Help with my