A newbie need help
#6

Quote:
Originally Posted by oMa37
Посмотреть сообщение
Then do it like this:
PHP код:
CMD:minigun(playeridparams[])
{
    
ShowPlayerDialog(playeridDIALOGMINIGUNDIALOG_STYLE_MSGBOX"Minigun""Are you sure you wanna join the minigun dm?""Yes""No");
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOGMINIGUN)
    {
        if(
response)
        {
            
// Here the code used when player click Yes
        
}
        else 
        {
            
// Here the code used when player click No
        
}
    }
    return 
0;

Thank you i have see that : https://sampwiki.blast.hk/wiki/OnDialogResponse.
Reply


Messages In This Thread
A newbie need help - by Eymeric69 - 07.05.2016, 09:19
Re: A newbie need help - by oMa37 - 07.05.2016, 09:27
Re: A newbie need help - by ZToPMaN - 07.05.2016, 09:29
Re: A newbie need help - by Eymeric69 - 07.05.2016, 09:32
Re: A newbie need help - by oMa37 - 07.05.2016, 09:46
Re: A newbie need help - by Eymeric69 - 07.05.2016, 09:50

Forum Jump:


Users browsing this thread: 1 Guest(s)