Quote:
Originally Posted by SkmDanny
Make a variable for both languages.
PHP код:
public OnPlayerConnect(playerid)
{
if(P_Data[playerid][Language] == 1)
{
SendClientMessage(playerid, 69, "Bine ai venit. Distractie placuta!");
}
else if(P_Data[playerid][Language] == 2)
{
SendClientMessage(playerid, 69, "Welcome. Have fun!");
}
return 1;
}
Is nice to play on a server where you can talk with a different language.
|
I dont recomand hardcoding it like that. You can make a file to read from..that way if you want to add more languages down the way you can do it. Also that way you can edit the texts right in-game..