SA-MP Forums Archive
What weapons do you get by what cars? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What weapons do you get by what cars? (/showthread.php?tid=142696)



What weapons do you get by what cars? - RSC_Quicker - 19.04.2010

Hey, I want to know all the weapons you get when you exit cars.
Like Cop Car, Shotgun
Caddy, Golf club
Because my anti weapon cheat doesn't like it
So it can be usefull to know this.


Re: What weapons do you get by what cars? - Sergei - 19.04.2010

Try all the vehicles. I can only add to your list that enforcer gives you body armour.


Re: What weapons do you get by what cars? - luigifan9 - 19.04.2010

Quote:
Originally Posted by MyName?
Hey, I want to know all the weapons you get when you exit cars.
Like Cop Car, Shotgun
Caddy, Golf club
Because my anti weapon cheat doesn't like it
So it can be usefull to know this.
or try
pawn Код:
public OnPlayerExitVehicle(playerid,vehicleid)
ResetPlayerWeapons(playerid, 0)



Re: What weapons do you get by what cars? - Adil - 19.04.2010

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by MyName?
Hey, I want to know all the weapons you get when you exit cars.
Like Cop Car, Shotgun
Caddy, Golf club
Because my anti weapon cheat doesn't like it
So it can be usefull to know this.
or try
pawn Код:
public OnPlayerExitVehicle(playerid,vehicleid)
ResetPlayerWeapons(playerid, 0)
There is only one parameter of ResetPlayerWeapons(playerid). And it will replace every weapon which the player has.


Re: What weapons do you get by what cars? - RSC_Quicker - 19.04.2010

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by MyName?
Hey, I want to know all the weapons you get when you exit cars.
Like Cop Car, Shotgun
Caddy, Golf club
Because my anti weapon cheat doesn't like it
So it can be usefull to know this.
or try
pawn Код:
public OnPlayerExitVehicle(playerid,vehicleid)
ResetPlayerWeapons(playerid, 0)
That doesn't work for me. My playeres also exits the vehicles without F or Enter. And in OnPlayerStateChange isn't a option doesn't work.
And I got Deathmatch zones.


Re: What weapons do you get by what cars? - biltong - 19.04.2010

Save each player's weapon in a file/variable as they leave a vehicle, check which ones they bought, then reset their weapons, then give them the legally owned weapons back.


Re: What weapons do you get by what cars? - RSC_Quicker - 20.04.2010

Quote:
Originally Posted by biltong
Save each player's weapon in a file/variable as they leave a vehicle, check which ones they bought, then reset their weapons, then give them the legally owned weapons back.
Lol didn't you read my question? I didn't ask how to remove them I already did that.



Re: What weapons do you get by what cars? - Geso - 20.04.2010

Police enforcer ---> Armor


Re: What weapons do you get by what cars? - Correlli - 20.04.2010

Quote:
Originally Posted by Geso
Police enforcer ---> Armor
That was already mentioned, even if armor isn't a weapon:
Quote:
Originally Posted by $ЂЯĢ
I can only add to your list that enforcer gives you body armour.



Re: What weapons do you get by what cars? - Geso - 20.04.2010

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Geso
Police enforcer ---> Armor
That was already mentioned, even if armor isn't a weapon:
Quote:
Originally Posted by $ЂЯĢ
I can only add to your list that enforcer gives you body armour.
Ooh yeah, true, didnt see it