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