OnDialogResponse
#8

Use this:
PHP код:
if(dialogid == DIALOG_SERVER_HOSTNAME

    if(!
response) return 1
    if(
response
    { 
        new 
hostname
        new 
string[128]; 
         if(
strlen(inputtext) < || strlen(inputtext) > 30) return SPD(playeridDIALOG_SERVER_HOSTNAMEDSI"HOSTNAME""Hostname ne sme biti imate < 3 || > 30 karaktera!""Uredu""Exit"); 
           
format(string,128,"hostname %s",inputtext); 
           
SendRconCommand(string); 
           return 
1
    } 

Reply


Messages In This Thread
OnDialogResponse - by maksicnm - 26.10.2017, 10:30
Re: OnDialogResponse - by Kraeror - 26.10.2017, 10:37
Re: OnDialogResponse - by StrikerZ - 26.10.2017, 10:38
Re: OnDialogResponse - by maksicnm - 26.10.2017, 10:39
Re: OnDialogResponse - by maksicnm - 26.10.2017, 10:45
Re: OnDialogResponse - by Kraeror - 26.10.2017, 10:45
Re: OnDialogResponse - by maksicnm - 26.10.2017, 10:48
Re: OnDialogResponse - by Kraeror - 26.10.2017, 10:57
Re: OnDialogResponse - by maksicnm - 26.10.2017, 18:17

Forum Jump:


Users browsing this thread: 1 Guest(s)