SA-MP Forums Archive
Dialog Question - 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: Dialog Question (/showthread.php?tid=657144)



Dialog Question - Jaua10 - 01.08.2018

Excuse me, Where can i put this to ask before register and account?

PHP код:
ShowPlayerDialog(playeridDIALOGO_SEXODIALOG_STYLE_MSGBOX"{FFFFFF}Welcome","\n{FFFFFF}\tChoose a language\n\tSeleccione un Idioma","{FFFFFF}English","{FFFFFF}Espaсol"); 



Re: Dialog Question - GRiMMREAPER - 01.08.2018

Under OnPlayerConnect and before you spawn the player.


Re: Dialog Questions - Jaua10 - 03.08.2018

Alrigh and now how can i do if any player press the "esc" key and "enter" key the server kicks you with a send u a message?

for example now i got when player enter in server ask you before registering in what lenguage u want to see the game mode,if player select english this will show u a dialog like "hello (name of the character) please put below the password u want, if player select spanish this will showu a dialog like hola (nombre del jugador) por favor escribe tu contraeсa abajo, and if player press "esc" key and "enter" key the server will kicks u too.

for the moment i got this:

PHP код:
public OnPlayerConnect(playerid)
{
    
ShowPlayerDialog(playeridLenguageDIALOG_STYLE_MSGBOX"                                     {FFFFFF}Welcome","\n{FFFFFF}\tPlease, choose a language you would like to display.\n\n\tPor favor, elija el idioma que desea mostrar.","{FFFFFF}English","{FFFFFF}Espaсol");
    
    return 
1;

can u explaint to me what can i do and where i have to place the code, thanks in advance


Re: Dialog Question - GRiMMREAPER - 03.08.2018

I'll give you a useful link. Try to figure it out yourself and if you have any doubts, come back to this thread.

https://sampwiki.blast.hk/wiki/OnDialogResponse


Re: Dialog Question - Jaua10 - 03.08.2018

alright thanks alot buddy! let me try this