[HELP] Double language script
#6

pawn Код:
new language;

public OnPlayerConnect(playerid){
    return ShowPlayerDialog(playerid, 1337, 0, "Language", "Please choose your language", "Croatian", "English");
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
    if(dialogid == 1337){
        language = response;
        return 0;
    }
    return 0;
}

/*
    then wen you send a SendClientMessage you do:
    if(language == 0) SendClientMessage(playerid, COLOR_KRED, "Niste autorizirani za koristenje ove koamnde");
    else SendClientMessage(playerid, COLOR_KRED, "Whatever that text above here meant :)");
*/
I think that is what you need.
Reply


Messages In This Thread
[HELP] Double language script - by System64 - 02.05.2011, 20:20
Re: [HELP] Double language script - by Anteino - 02.05.2011, 22:35
Re: [HELP] Double language script - by System64 - 03.05.2011, 09:49
Re: [HELP] Double language script - by Anteino - 03.05.2011, 11:32
Re: [HELP] Double language script - by System64 - 03.05.2011, 17:03
Re: [HELP] Double language script - by Anteino - 04.05.2011, 05:27
Re: [HELP] Double language script - by System64 - 04.05.2011, 06:33

Forum Jump:


Users browsing this thread: 1 Guest(s)