little help with pickup
#1

how i can make when player go in pickup and when he write /enter to the player to show a dialog
Reply
#2

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.

Reply
#3

yes i know this but how i can make to show player dialog when he write /enter
Reply
#4

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)
Reply
#5

but want when player when he write /enter to show the dialog not when he go in in the pickup
Reply
#6

pawn Код:
CMD:enter(playerid, params[])
{
    if ( isnull ( params ) )
    {
        ShowPlayerDialog( ... );
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)