Adding a Command to pickup?? [help]
#1

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
Reply
#2

then remove public OnPlayerPickUpPickup and write

pawn Код:
if (strcmp("/buycar", cmdtext, true, 10) == 0)
{
    ShowMenu(playerid, // yourthings);
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)