What the ... weapon?! - 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: Discussion (
https://sampforum.blast.hk/forumdisplay.php?fid=84)
+---- Thread: What the ... weapon?! (
/showthread.php?tid=606005)
What the ... weapon?! -
BloodyRP - 28.04.2016
Hello guys. Dunno where I can post this, I think thats is the best place to give info for other ppl.
Sorry for my poor english and etc, but I found 1 bug, dunno if some1 knew that or not - me didn't.
Here it is:
If u create pickup with this:
PHP Code:
mypickup = CreatePickup(353
where 353 - mp5 object and set TYPE OF PICKUP to 2:
PHP Code:
mypickup = CreatePickup(353,2,...
This will always give to player 60 bullets of mp5 if u pick up this. and 'return true' will not save u against that
PHP Code:
if(pickupid == mypickup) return true;
Thats doesnt work. If u dont want to give mp5 when player pick up pickup with 353object u need to put type on '23'.
Sorry if that is already known, but may be some1 will learn after me.
-STILL SORRY FOR POOR ENGLISH AND BAD EXPLANATION.
Re: What the ... weapon?! -
Spmn - 11.05.2016
mypickup = CreatePickup(353,
1,...
*I changed pickup type to
1
Then put this at OnPlayerPickUpPickup:
Code:
if(pickupid == mypickup)
{
if(is_player_eligible) GivePlayerWeapon();
else SendClientMessage();
}