22.01.2010, 15:38
Hi guys i have a little question, today iґve started to made an Languages System for my server so i have started with some if questions i Want that english users get english messages and german german messages. So can i have test this
if it works i would put it in the /sfp command
I will that all users who use the english language (englisch[playerid] == 1) get the english clientmessage when a is at /sfp
all other german user who use the german language }else{ get the german clientmessage
so can someone give me a quickly answer please if i can use this code
Код:
if (englisch[playerid] == 1)
{
GetPlayerName(playerid, cmdname, sizeof(cmdname));
format(string, sizeof(string), ">>> %s is at San fierros puff /sfp <<<", cmdname);
SendClientMessageToAll(0xF17A26FF, string);
}
else
{
GetPlayerName(playerid, cmdname, sizeof(cmdname));
format(string, sizeof(string), ">>> %s ist bei San fierros puff /sfp <<<", cmdname);
SendClientMessageToAll(0xF17A26FF, string);
}
I will that all users who use the english language (englisch[playerid] == 1) get the english clientmessage when a is at /sfp
all other german user who use the german language }else{ get the german clientmessage
so can someone give me a quickly answer please if i can use this code


but i want that the english users get the english message hmm
so my other question is now how i can change the language per command so if a player type for example /english he will get the messages from the sekond case ?