Jump to content
  • 0

Server RO-ENG


ruben88

Question

1 answer to this question

Recommended Posts

Foloseste o variabila pentru limba. De exemplu pui asta sus in script:

new Language[MAX_PLAYERS];
Faci o comanda sa selectezi limba, iar apoi faci o functie de genul asta (sau o iei direct pe asta):
stock SendClientMessageLanguage(playerid, color, eng[], ro[])
{
    switch( Language[playerid] )
    {
        case 0: SendClientMessage(playerid, color, eng); //mesaj engleza
        case 1: SendClientMessage(playerid, color, ro); //mesaj romana
    }
}

Si poti sa schimbi sa dea la toti playerii cu limba lor, sa dea si cu gametext pe limba, etc.

Si in loc de SendClientMessage(playerid, color, message); folosesti SendClientMessageLanguage(playerid, color, eng_message, ro_message);.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.