28.05.2016, 07:44
PHP код:
//create new variable
new Lang [MAX_PLAYERS];
PHP код:
//somewhere set player language
Lang[playerid] = 1; //you can set 0, 5, 3 and etc.
PHP код:
//check what language and do smth
if(Lang[playerid] == 1) {
format(string, sizeof(string), "notification: english language.");
SendClientMessage(playerid, 0xFFFFFF, string);
}
else {
format(string, sizeof(string), "notificaciуn: lengua espaсola");
SendClientMessage(playerid, 0xFFFFFF, string);
}