SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 02/05/2011, 08:20 PM   #1
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Post [HELP] Double language script

Hay everyone, I'm new on forum (but I follow it as guest) and I can't find tutorial for Double languages script, i'm from Croatia and I'm making stunt server (editing Fafu's freeroam) and I remove all his dobule language and translate script on Croatian (noob) and now If any one can help me to make dobule language script (translation isn't problem, I will translate it) I will be very happy xD and he will have credit by me in my GM! Thanks a lot
System64 is offline  
Old 02/05/2011, 10:35 PM   #2
Anteino
Big Clucker
 
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default Re: [HELP] Double language script

You want the player to choose his language and let the whole server appeal to him in that language? That's easy post the code.
__________________
Let's solve problems!
Anteino is offline  
Old 03/05/2011, 09:49 AM   #3
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: [HELP] Double language script

I don't understand you ?? what is that code?
System64 is offline  
Old 03/05/2011, 11:32 AM   #4
Anteino
Big Clucker
 
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default Re: [HELP] Double language script

The script you want in two languages
__________________
Let's solve problems!
Anteino is offline  
Old 03/05/2011, 05:03 PM   #5
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: [HELP] Double language script

Yes, I have edit Fafu's freeroam, and remove double language, now I want again double language, And In all messages which can be sent to a player etc. to be on his lanugae, I think you understand me, Now, whene player register than he must choose betwen 2 languages, Croatian and english,If he choose English eg. I my mod I have function SendClientMessage(playerid, COLOR_KRED, "Niste autorizirani za koristenje ove koamnde"); now I wnt If player choose English, if he type admin commands and he is not admin it will send him You are now authorize to use that command, which means Niste autorizirani za koristenje te koamnde, now you understande? If you can make me that I can send you my GM on PM?Thanks
System64 is offline  
Old 04/05/2011, 05:27 AM   #6
Anteino
Big Clucker
 
Join Date: Dec 2010
Posts: 138
Reputation: 2
Default Re: [HELP] Double language script

pawn Code:
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.
__________________
Let's solve problems!
Anteino is offline  
Old 04/05/2011, 06:33 AM   #7
System64
Gangsta
 
System64's Avatar
 
Join Date: May 2011
Location: Zadar, Croatia
Posts: 933
Reputation: 143
Default Re: [HELP] Double language script

I try It but doesnt work, can I send You my GM than if you can make me that? You don't have to translate it I will PLiss?
System64 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
2 language script help mariokumanovac Help Archive 5 24/06/2010 08:28 PM
how to make in our script 2 language to select gozo12 Help Archive 4 09/03/2010 06:39 PM
[Include] [INC] Language System (nine languages support) - !No developer, no script! Luka P. Includes 34 17/01/2010 02:05 PM
Is PAWN a child of another script language? Striker_Moe General 2 13/11/2009 02:32 PM


All times are GMT. The time now is 04:21 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.