Dialog Question
#1

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"); 
Reply
#2

Under OnPlayerConnect and before you spawn the player.
Reply
#3

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

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

alright thanks alot buddy! let me try this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)