SA-MP Forums

Go Back   SA-MP Forums > SA-MP > General

Reply
 
Thread Tools Display Modes
Old 24/04/2018, 01:03 PM   #11
maikeel
Little Clucker
 
Join Date: May 2017
Posts: 21
Reputation: 0
Default Re: Roleplay server

Quote:
Originally Posted by Zeus666 View Post
Spanish: ola amigo ! Que passa? Todo bien?

English: hello you cunt motherfucker cock sucker, wasssup yo black ass doin ma nigga? Yo ass is finee azzzz ma nigga?
ffs, do you know that spanish and portuguese aren't the same?
maikeel is offline   Reply With Quote
Old 24/04/2018, 04:19 PM   #12
SkmDanny
Little Clucker
 
SkmDanny's Avatar
 
Join Date: Nov 2017
Location: Romania
Posts: 32
Reputation: 0
Default Re: Roleplay server

Make a variable for both languages.
PHP Code:
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.
SkmDanny is offline   Reply With Quote
Old 24/04/2018, 05:41 PM   #13
Flashhiee
High-roller
 
Flashhiee's Avatar
 
Join Date: Mar 2012
Posts: 1,042
Reputation: 249
Default Re: Roleplay server

Quote:
Originally Posted by SkmDanny View Post
Make a variable for both languages.
PHP Code:
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..
__________________
aka UnuAlex
Flashhiee is offline   Reply With Quote
Old 25/04/2018, 05:26 PM   #14
SkmDanny
Little Clucker
 
SkmDanny's Avatar
 
Join Date: Nov 2017
Location: Romania
Posts: 32
Reputation: 0
Default Re: Roleplay server

Quote:
Originally Posted by Flashhiee View Post
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..
PHP Code:
forward SendMessage(playeridcolorro[], en[]);
public 
SendMessage(playeridcolorro[], en[])
{
    switch(
P_Data[playerid][Language])
    {
        case 
1SendClientMessage(playeridcolorro);
        case 
2SendClientMessage(playeridcoloren);
    }
    return 
1;

PHP Code:
public OnPlayerConnect(playerid

    
SendMessage(playerid69"Bine ai venit. Distractie placuta!""Welcome. Have fun!");
    return 
1

SkmDanny is offline   Reply With Quote
Old 25/04/2018, 05:43 PM   #15
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 460
Reputation: 42
Default Re: Roleplay server

Actually I don't need sendclientmessage's in 2 languages

Why? Because I don't see why I would need.

"Use /phone to call someone" isn't hard to understand.


The single problem would be in game chat,(as /me texts. /me rises his hand etcetc) but as I said, I don't care if some romanian's who can't learn basic english won't play in my server.

I will care about the rest of players whom will have a great experience on my server
Zeus666 is offline   Reply With Quote
Reply

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
A roleplay server for newcomers or an advanced roleplay server? Meller General 6 17/09/2017 01:30 PM


All times are GMT. The time now is 12:09 AM.


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