Da hast du.
if(strcmp(cmdtext,"/r",true,2) == 0)
{
new string[128],string2[128],string3[128],name[24];
GetPlayerName(playerid,name,sizeof name);
format(string,sizeof string,"Chief %s: %s,over",name,cmdtext[3]);
format(string,sizeof string,"Captain %s: %s,over",name,cmdtext[3]);
format(string,sizeof string,"Lieutnant %s: %s,over",name,cmdtext[3]);
format(string,sizeof string,"Seargent %s: %s,over",name,cmdtext[3]);
format(string,sizeof string,"Officer %s: %s,over",name,cmdtext[3]);
format(string,sizeof string,"Cadet %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Director %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Assistan Director in Charge %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Special Agent in Charge %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Special Agent %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Special Agent Trainee %s: %s,over",name,cmdtext[3]);
format(string,sizeof string2,"Professional Staff %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"General %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"Oberstleutnant %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"Hauptmann %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"Leutnant %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"Stabsgefreiter %s: %s,over",name,cmdtext[3]);
format(string,sizeof string3,"Gefreiter %s: %s,over",name,cmdtext[3]);
if(!strlen(cmdtext[2]))
{
SendClientMessage(playerid,COLOR_GREY,"Benutze: /r [text]");
return 1;
}
if(gTeam[playerid] == TEAM_COPS|| gTeam[playerid] == TEAM_COPS)
{
for(new i=0 ; i <GetMaxPlayers() ; i++)
{
if(gTeam[i] == TEAM_COPS || gTeam[i] == TEAM_COPS)
{
return SendClientMessage(i,COLOR_LSPDCHAT,string);
}
}
}
if(gTeam[playerid] == TEAM_FBI|| gTeam[playerid] == TEAM_FBI)
{
for(new i=0 ; i <GetMaxPlayers() ; i++)
{
if(gTeam[i] == TEAM_FBI || gTeam[i] == TEAM_FBI)
{
return SendClientMessage(i,COLOR_LSPDCHAT,string2);
}
}
}
if(gTeam[playerid] == TEAM_ARMY|| gTeam[playerid] == TEAM_ARMY)
{
for(new i=0 ; i <GetMaxPlayers() ; i++)
{
if(gTeam[i] == TEAM_ARMY || gTeam[i] == TEAM_ARMY)
{
return SendClientMessage(i,COLOR_LSPDCHAT,string3);
}
}
}
return 1;
}
Nein, das rücke ich dir nicht mehr ein.
(Ich verweise mal wieder stillschweigend auf meine Signatur.)