17.07.2011, 09:43
pawn Код:
stock SendLangMessageToAll(const eng[],const esp[])
{
new string[250];
for(new i = 0; i < MAX_PLAYERS;i++)
{
if(GetLang(i) == 1)
{
format(string,sizeof(string),"%s",eng);
}
if(GetLang(i) == 2)
{
format(string,sizeof(string),"%s",esp);
}
SendClientMessage(i,green2,string);
}
return 1;
}
But how could i make that so i can do SendLangMessageToAll("Hello there %s","Hola %s",GetPlayerName(playerid,pName,sizeof(pName));