03.08.2018, 08:10
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:
can u explaint to me what can i do and where i have to place the code, thanks in advance
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(playerid, Lenguage, DIALOG_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;
}