Hallo, ich hbe ne frage,
ich möchte einen Log über die Teamchats machen
wie geht das?
dcmd_tc(playerid,params[])
{
if(gTeam[playerid]==1 || gTeam[playerid]==2 || gTeam[playerid]==5 || gTeam[playerid]==7)
{
new text[256];
if(sscanf(params, "s[512]",text)) return SendClientMessage(playerid,COLOR_YELLOW,"Benutzung: /tc [Text]");
new aname[MAX_PLAYER_NAME], astr[256];
GetPlayerName(playerid, aname, sizeof(aname));
format(astr, sizeof(astr), "Team-Chat %s: %s ", aname, text);
SendClientMessage(playerid,COLOR_TOMATO, astr);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i]==1 && i != playerid||gTeam[i]==2 && i != playerid||gTeam[i]==5 && i != playerid||gTeam[i]==7 && i != playerid)
{
format(astr, sizeof(astr), "Team-Chat %s: %s ", aname, text);
SendClientMessage(i,COLOR_TOMATO, astr);
}
}
}
return 1;
}
Kann es einer da rein scripten
MFG
runner23