little help with pickup - 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)
+--- Thread: little help with pickup (
/showthread.php?tid=293549)
little help with pickup -
boyan96 - 29.10.2011
how i can make when player go in pickup and when he write /enter to the player to show a dialog
Re: little help with pickup -
Azzeto - 29.10.2011
You would have to create a new pickup..
PHP код:
//Top
new pickup1;
//ongamemodeinit
pickup 1 == CreatePickup(pickupid,type,x,y,z);
//OnPlayerPickupPickup
if(pickupid == pickup1)
{
//Your code here.
}
Re: little help with pickup -
boyan96 - 29.10.2011
yes i know this but how i can make to show player dialog when he write /enter
Re: little help with pickup -
GAMER_PS2 - 29.10.2011
pawn Код:
ShowPlayerDialog(playerid,DIALOGID (E.G:1), STYLE of Dialog, "Tittle", "Words inside the dialog", "Button", "Button");
we have 3 STYLE of dialog heres one
DIALOG_STYLE_MSGBOX
DIALOG_STYLE_INPUT (Good for Admin System)
DIALOG_STYLE_LIST (Good for Buying System)
Re: little help with pickup -
boyan96 - 29.10.2011
but want when player when he write /enter to show the dialog not when he go in in the pickup
Re: little help with pickup -
SmiT - 29.10.2011
pawn Код:
CMD:enter(playerid, params[])
{
if ( isnull ( params ) )
{
ShowPlayerDialog( ... );
}
return true;
}