Also er zeigt ingame nix an wenn ich /f text mache.
#define LSPDR1 "Praktikant"
#define LSPDR2 "Officer"
#define LSPDR3 "SEK"
#define LSPDR4 "Ausbilder"
#define LSPDR5 "Co-Leader"
#define LSPDR6 "Leader"
#define BMR1 "Praktikant"
#define BMR2 "Bodyguard"
#define BMR3 "Fahrer"
#define BMR4 "Ausbilder"
#define BMR5 "Vize-Präsident"
#define BMR6 "Präsident"
#define Medic1 "Praktikant"
#define Medic2 "Dr."
#define Medic3 "Dr. Med."
#define Medic4 "Ausbilder"
#define Medic5 "Co-Leader"
#define Medic6 "Leader"
#define FSR1 "Praktikant"
#define FSR2 "Fahrlehrer"
#define FSR3 "FlugLehrer"
#define FSR4 "Ausbilder"
#define FSR5 "Firmen-CoChef"
#define FSR6 "Firmen-Chef"
ocmd:f(playerid,params[])
{
new text[128],Rang[54];
if(sscanf(params,"s",text))return SendClientMessage(playerid,ROT,"/f [text]");
if(GetPVarInt(playerid,"Fraktion")==1)
{
switch(GetPVarInt(playerid,"FRank"))
{
case 1:{Rang=LSPDR1;}
case 2:{Rang=LSPDR2;}
case 3:{Rang=LSPDR3;}
case 4:{Rang=LSPDR4;}
case 5:{Rang=LSPDR5;}
case 6:{Rang=LSPDR6;}
}
}
if(GetPVarInt(playerid,"Fraktion")==7)
{
switch(GetPVarInt(playerid,"FRank"))
{
case 1:{Rang=BMR1;}
case 2:{Rang=BMR2;}
case 3:{Rang=BMR3;}
case 4:{Rang=BMR4;}
case 5:{Rang=BMR5;}
case 6:{Rang=BMR6;}
}
}
if(GetPVarInt(playerid,"Fraktion")==4)
{
switch(GetPVarInt(playerid,"FRank"))
{
case 1:{Rang=Medic1;}
case 2:{Rang=Medic2;}
case 3:{Rang=Medic3;}
case 4:{Rang=Medic4;}
case 5:{Rang=Medic5;}
case 6:{Rang=Medic6;}
}
}
if(GetPVarInt(playerid,"Fraktion")==5)
{
switch(GetPVarInt(playerid,"FRank"))
{
case 1:{Rang=FSR1;}
case 2:{Rang=FSR2;}
case 3:{Rang=FSR3;}
case 4:{Rang=FSR4;}
case 5:{Rang=FSR5;}
case 6:{Rang=FSR6;}
}
}
format(text,sizeof(text),"((%s %s: %s ))",Rang,SpielerName(playerid),text);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(isPlayerInFrakt(i,GetPVarInt(playerid,"Fraktion")))
{
SendClientMessage(i,HELLBLAU,text);
}
}
return 1;
}
return 1;
}
Danke im vorraus.