How to create Language
#1

I need help with
If player connect to server show dialog with Englis lang. and Germany lang.
if pplayer select englis so gamemode is english
Reply
#2

You need to make 2 variables, one English and one German, if the player registres with German one, if he type a cmd use if statement to check the language and after if he is german show the text in german
Reply
#3

try this bro
Quote:

CMD:accent(playerid, params[])
{
new accent;
if(sscanf(params, "d", accent))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /accent [accent ID]");
SendClientMessage(playerid, COLOR_GRAD2, "Available Names: Normal [1], British [2], Asian [3], Scottish [4], Irish [5], Russian [6], American [7]");
SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Spanish [8], Southern [9], Cuban [10], Italian [11], Gangster [12], Australian [13]");
SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Arabic [14], Balkan [15], Canadian [16], Jamaican [17], Israeli [18], Indian [19]");
SendClientMessage(playerid, COLOR_GRAD2, "Available Accents: Welsh [20], French [21], German [22], Dutch [23], South African [24], No Accent [25]");
return 1;
}

switch(accent)
{
case 1:
{
PlayerInfo[playerid][pAccent] = 1;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Normal accent, use /accent to change it.");
}
case 2:
{
PlayerInfo[playerid][pAccent] = 2;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the British accent, use /accent to change it.");
}
case 3:
{
PlayerInfo[playerid][pAccent] = 3;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Asian accent, use /accent to change it.");
}
case 4:
{
PlayerInfo[playerid][pAccent] = 4;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Scottish accent, use /accent to change it.");
}
case 5:
{
PlayerInfo[playerid][pAccent] = 5;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Irish accent, use /accent to change it.");
}
case 6:
{
PlayerInfo[playerid][pAccent] = 6;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Russian accent, use /accent to change it.");
}
case 7:
{
PlayerInfo[playerid][pAccent] = 7;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the American accent, use /accent to change it.");
}
case 8:
{
PlayerInfo[playerid][pAccent] = 8;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Spanish accent, use /accent to change it.");
}
case 9:
{
PlayerInfo[playerid][pAccent] = 9;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Southern accent, use /accent to change it.");
}
case 10:
{
PlayerInfo[playerid][pAccent] = 10;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Cuban accent, use /accent to change it.");
}
case 11:
{
PlayerInfo[playerid][pAccent] = 11;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Italian accent, use /accent to change it.");
}
case 12:
{
PlayerInfo[playerid][pAccent] = 12;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Gangster accent, use /accent to change it.");
}
case 13:
{
PlayerInfo[playerid][pAccent] = 13;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Australian accent, use /accent to change it.");
}
case 14:
{
PlayerInfo[playerid][pAccent] = 14;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Arabic accent, use /accent to change it.");
}
case 15:
{
PlayerInfo[playerid][pAccent] = 15;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Balkan accent, use /accent to change it.");
}
case 16:
{
PlayerInfo[playerid][pAccent] = 16;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Canadian accent, use /accent to change it.");
}
case 17:
{
PlayerInfo[playerid][pAccent] = 17;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Jamaican accent, use /accent to change it.");
}
case 18:
{
PlayerInfo[playerid][pAccent] = 18;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Israeli accent, use /accent to change it.");
}
case 19:
{
PlayerInfo[playerid][pAccent] = 19;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Indian accent, use /accent to change it.");
}
case 20:
{
PlayerInfo[playerid][pAccent] = 20;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Welsh accent, use /accent to change it.");
}
case 21:
{
PlayerInfo[playerid][pAccent] = 21;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the French accent, use /accent to change it.");
}
case 22:
{
PlayerInfo[playerid][pAccent] = 22;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the German accent, use /accent to change it.");
}
case 23:
{
PlayerInfo[playerid][pAccent] = 23;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the Dutch accent, use /accent to change it.");
}
case 24:
{
PlayerInfo[playerid][pAccent] = 24;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the South African accent, use /accent to change it.");
}
case 25:
{
PlayerInfo[playerid][pAccent] = 25;
SendClientMessage(playerid, COLOR_WHITE, "You will now speak in the No Accent, use /accent to change it.");
}
}
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)