Moin Leute ,
Warum hat fraktion 0 auch ein F chat ?? is doch abgefragt ??
ocmd:f(playerid,params[])
{
new text[128];
if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3)|| isPlayerInFrakt(playerid,4)|| isPlayerInFrakt(playerid,5)|| isPlayerInFrakt(playerid,6)|| isPlayerInFrakt(playerid,7)|| isPlayerInFrakt(playerid,8)|| isPlayerInFrakt(playerid,9)|| isPlayerInFrakt(playerid,10)
|| isPlayerInFrakt(playerid,11)|| isPlayerInFrakt(playerid,12)|| isPlayerInFrakt(playerid,13)|| isPlayerInFrakt(playerid,14)|| isPlayerInFrakt(playerid,15)|| isPlayerInFrakt(playerid,16)|| isPlayerInFrakt(playerid,17)|| isPlayerInFrakt(playerid,18)|| isPlayerInFrakt(playerid,19)|| isPlayerInFrakt(playerid,20)
|| isPlayerInFrakt(playerid,21))
if(sscanf(params,"s",text))return SendClientMessage(playerid,Grau,"Fehler: /f [text]");
format(text,sizeof(text),"**(( %s %s: %s.))**",RankName(playerid),SpielerName(playerid),text);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(isPlayerInFrakt(i,GetPVarInt(playerid,"Fraktion")))
{
SendClientMessage(i,0x00FFFFFF,text);
}
}
}
return 1;
}