drive by gun - 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: drive by gun (
/showthread.php?tid=415610)
drive by gun -
pelani - 13.02.2013
how to off player weapon on pessenger seat i wan player can't shoot with dealge on pessenger seat and when he out of car and then they got back deagle.
Re: drive by gun -
arakuta - 13.02.2013
Callback: OnPlayerStateChange
Check whether the player is with a deagle as a passenger, if he got a deagle, just use SetPlayerArmedWeapon, else do nothing.
pawn Код:
if(newstate == PLAYER_STATE_PASSENGER && GetPlayerWeapon(playerid) == 24)
{
SendClientMessage(playerid,-1,"Don't use deagle as passenger, dumb");
SetPlayerArmedWeapon(playerid,0);
}