Adding a Command to pickup?? [help] - 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: Adding a Command to pickup?? [help] (
/showthread.php?tid=239448)
Adding a Command to pickup?? [help] -
BurgessGaming - 13.03.2011
Right so in addition to my last post getting no help i decided to take a different approach.
I have a CarSales script what brings up a menu automaticly when walked into a pickup.
I want to change this so that the player has to type "/buycar". at the moment the SF menu is under
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
and this comes up on EVERY pickup for some reason.. anyone have anyideas?
thanks
Re: Adding a Command to pickup?? [help] -
Medal Of Honor team - 13.03.2011
then remove public OnPlayerPickUpPickup and write
pawn Код:
if (strcmp("/buycar", cmdtext, true, 10) == 0)
{
ShowMenu(playerid, // yourthings);
return true;
}