Roleplay server
#12

Quote:
Originally Posted by SkmDanny
Посмотреть сообщение
Make a variable for both languages.
PHP код:
public OnPlayerConnect(playerid)
{
    if(
P_Data[playerid][Language] == 1)
    {
        
SendClientMessage(playerid69"Bine ai venit. Distractie placuta!");
    }
    else if(
P_Data[playerid][Language] == 2)
    {
        
SendClientMessage(playerid69"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..
Reply


Messages In This Thread
Roleplay server - by Zeus666 - 22.04.2018, 09:39
Re: Roleplay server - by HeLiOn_PrImE - 22.04.2018, 10:00
Re: Roleplay server - by Zeus666 - 22.04.2018, 10:02
Re: Roleplay server - by HeLiOn_PrImE - 22.04.2018, 10:05
Re: Roleplay server - by Splodyf23 - 22.04.2018, 11:55
Re: Roleplay server - by Zeus666 - 22.04.2018, 12:00
Re: Roleplay server - by TheNeeraz - 23.04.2018, 01:17
Re: Roleplay server - by Adi007 - 23.04.2018, 08:36
Re: Roleplay server - by Zeus666 - 23.04.2018, 09:09
Re: Roleplay server - by maikeel - 24.04.2018, 13:03
Re: Roleplay server - by SkmDanny - 24.04.2018, 16:19
Re: Roleplay server - by Flashhiee - 24.04.2018, 17:41
Re: Roleplay server - by SkmDanny - 25.04.2018, 17:26
Re: Roleplay server - by Zeus666 - 25.04.2018, 17:43

Forum Jump:


Users browsing this thread: 4 Guest(s)