Posts: 82
Threads: 34
Joined: Feb 2015
Reputation:
0
For example when LSPD's member takes gun from the locker he got unlimited ammu,
How I fix it?
Posts: 270
Threads: 10
Joined: Jun 2016
Reputation:
0
GivePlayerWeapon(playerid, 36, 9999); /// 36 is the id of Sniper and 9999 means Unlimited Ammo.
Posts: 82
Threads: 34
Joined: Feb 2015
Reputation:
0
Please someone help me, it's very important for me.
Posts: 153
Threads: 6
Joined: Nov 2014
Reputation:
0
Seems like you are scripting inside a GodFather.
GivePlayerValidWeapon is not a standard SA-MP function. "giveplayerid" just means the playerid who the server will give the weapons to. Please post the command and the GivePlayerValidWeapon function to let me help you as best as possible.
Posts: 270
Threads: 10
Joined: Jun 2016
Reputation:
0
My Opinion:
Use GivePlayerWeapon indeed GivePlayerValidWeapon. because giveplayerweapon is SA-MP own Function,
Posts: 153
Threads: 6
Joined: Nov 2014
Reputation:
0
@FuNkYTheGreat
We dont know his script. Maybe he will ban a player if he will not use the script-sided function.
@Progamerisrael1
Search for the function "GivePlayerValidWeapon" in your script and post it. Also post the function which would be execuded if a cop is taken guns out of the locker.
Posts: 270
Threads: 10
Joined: Jun 2016
Reputation:
0
in his script GaiveplayerValidWeapon = GiveplayerWeapon