Guten Tag liebe sampler,
ich habe ein Problem. Unzwar bekomme ich den /radio,/department,Family ,/Megaphone chat nicht gefixxt
Ich hoffe das ihr mir da helfen könnt da ich nicht weiterweiß =(
wenn ich ingame z.B /r mache sagt er nur Verwene /radio [Text]
COMMAND:f(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Familie / Mafia / Gang!");
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /family [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pFraktion], TEAM_AZTECAS_COLOR, string);
return 1;
}
COMMAND:family(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Familie / Mafia / Gang!");
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /family [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pFraktion], TEAM_AZTECAS_COLOR, string);
return 1;
}
COMMAND:r(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24)
{
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /radio [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s, over. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
if(PlayerInfo[playerid][pFraktion] > 2) SendFamilyMessage(PlayerInfo[playerid][pFraktion], TEAM_BLUE_COLOR, string);
else
{
SendFamilyMessage(1, TEAM_BLUE_COLOR, string);
SendFamilyMessage(2, TEAM_BLUE_COLOR, string);
}
}
else SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Staatsorganisation!");
return 1;
}
COMMAND:radio(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24)
{
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /radio [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s, over. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
if(PlayerInfo[playerid][pFraktion] > 2) SendFamilyMessage(PlayerInfo[playerid][pFraktion], TEAM_BLUE_COLOR, string);
else
{
SendFamilyMessage(1, TEAM_BLUE_COLOR, string);
SendFamilyMessage(2, TEAM_BLUE_COLOR, string);
}
}
else SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Staatsorganisation!");
return 1;
}
COMMAND:d(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24)
{
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /departments [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
SendTeamMessage(2, COLOR_ALLDEPT, string);
SendTeamMessage(7, COLOR_ALLDEPT, string);
SendFamilyMessage(4, COLOR_ALLDEPT, string);
SendFamilyMessage(24, COLOR_ALLDEPT, string);
}
else SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Staatsorganisation!");
return 1;
}
COMMAND:departments(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return 1;
if(PlayerInfo[playerid][pFraktion] == 0) return SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied oder Teil einer Fraktion!");
if(PlayerInfo[playerid][pTeam] == 7 || PlayerInfo[playerid][pTeam] == 2 || PlayerInfo[playerid][pFraktion] == 4 || PlayerInfo[playerid][pFraktion] == 24)
{
new result[128], string[128], sendername[MAX_PLAYER_NAME];
if(sscanf(params, "s["#64"]", result)) return SendClientMessage(playerid, COLOR_RED, "Verwendung: /departments [Text]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "*** %s %s: %s. )) **", FInfoRang[PlayerInfo[playerid][pFraktion]][PlayerInfo[playerid][pRank]-1], sendername, result);
SendTeamMessage(2, COLOR_ALLDEPT, string);
SendTeamMessage(7, COLOR_ALLDEPT, string);
SendFamilyMessage(4, COLOR_ALLDEPT, string);
SendFamilyMessage(24, COLOR_ALLDEPT, string);
}
else SendClientMessage(playerid, COLOR_RED, "Du bist kein Mitglied einer Staatsorganisation!");
return 1;
}