Jump to content

Question

Posted

Salut,as vrea sa imi traduc serverul meu si in engleza,adik sa poti ca sa selecteze playeri pe ce limba vor ei sa fie serveru,vati prins voi...

Nu stiu cum,am nevoie de ajutor :)

1 answer to this question

Recommended Posts

Posted

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);.

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.