[HELP] Please help me +REP1 ! - 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: [HELP] Please help me +REP1 ! (
/showthread.php?tid=486354)
[HELP] Please help me +REP1 ! -
VenomMancer - 08.01.2014
Hello guys ..
I will ask !
When the players on Vehicle, how to make the players cant shoot ?
Help me for get +REP1 !
Thanks ..
Re: [HELP] Please help me +REP1 ! -
offon - 08.01.2014
Use SetPlayerArmedWeapon(playerid, 0);
You can use it in the public OnPlayerStateChange.
Re: [HELP] Please help me +REP1 ! -
VenomMancer - 08.01.2014
Quote:
Originally Posted by offon
Use SetPlayerArmedWeapon(playerid, 0);
You can use it in the public OnPlayerStateChange.
|
Example ?
Re: [HELP] Please help me +REP1 ! -
newbie scripter - 08.01.2014
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver or as a passenger.
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
Re: [HELP] Please help me +REP1 ! -
VenomMancer - 08.01.2014
Quote:
Originally Posted by newbie scripter
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER || PLAYER_STATE_PASSENGER) // Player entered a vehicle as a driver or as a passenger. { SetPlayerArmedWeapon(playerid, 0); } return 1; }
|
Works !!
Thanks
+REP1