Also nur ich sehe den F-Chat
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;
}
Die anderen können was reinschreiben das seh ich dann zwar auch aber sie net.