18.11.2010, 03:16
Hi guys, i have this simple macros:
What i was wondering is, how can this be created into a stock, ( or if possible, a macro ) say for example,
So, it will detect the 'playerid' 's language, and send it to his correct language :d ( I suck at explaining )
"Language" == 1 - English
"Language" == 2 - Spanish.
pawn Код:
#define EMessage(%0,%1,%2) if(GetPVarInt(%0, "Language") == 1) SendClientMessage(%0, %1, %2)
#define SMessage(%0,%1,%2) if(GetPVarInt(%0, "Language") == 2) SendClientMessage(%0, %1, %2)
pawn Код:
SendMsgInLanguage(playerid, color, Msg);
"Language" == 1 - English
"Language" == 2 - Spanish.