Drive-by Deagle - 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 Deagle (
/showthread.php?tid=308021)
Drive-by Deagle -
KeeDee - 02.01.2012
Hey guys i was currently looking how to remove Drive-by Deagles if you know how leave me a
Feedback
Re: Drive-by Deagle -
[ABK]Antonio - 02.01.2012
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_PASSENGER)
{
new wep = GetPlayerWeapon(playerid);
switch(wep)
{
case 24:
{
SetPlayerArmedWeapon(playerid, 0);
}
}
}
}