Habs jetzt so gemacht:
ocmd:f(playerid,params[])
{
if(sscanf(params,"s",stringbert2))return SendClientMessage(playerid,HELLROT,"AdmCmd: Benutze /f [Text]");
format(stringbert,sizeof(stringbert),"{FFFFFF}(( Team Chat {FF24AF}%s:{FFFFFF} %s ))",SpielerName(playerid),stringbert2);if(klasse[playerid]==1) { SendClientMessageToAll(PINK,stringbert); }
if(klasse[playerid]==1) { SendClientMessageToAll(PINK,stringbert); }
format(stringbert,sizeof(stringbert),"{FFFFFF}(( Team Chat {FF24AF}%s:{FFFFFF} %s ))",SpielerName(playerid),stringbert2);if(klasse[playerid]==2) { SendClientMessageToAll(GRUEN,stringbert); }
if(klasse[playerid]==2) { SendClientMessageToAll(GRUEN,stringbert); }
format(stringbert,sizeof(stringbert),"{FFFFFF}(( Team Chat {FF24AF}%s:{FFFFFF} %s ))",SpielerName(playerid),stringbert2);if(klasse[playerid]==3) { SendClientMessageToAll(GELB,stringbert); }
if(klasse[playerid]==3) { SendClientMessageToAll(GELB,stringbert); }
format(stringbert,sizeof(stringbert),"{FFFFFF}(( Team Chat {FF24AF}%s:{FFFFFF} %s ))",SpielerName(playerid),stringbert2);if(klasse[playerid]==4) { SendClientMessageToAll(GRAU,stringbert); }
if(klasse[playerid]==4) { SendClientMessageToAll(GRAU,stringbert); }
format(stringbert,sizeof(stringbert),"{FFFFFF}(( Team Chat {FF24AF}%s:{FFFFFF} %s ))",SpielerName(playerid),stringbert2);if(klasse[playerid]==5) { SendClientMessageToAll(HELLBLAU,stringbert); }
if(klasse[playerid]==5) { SendClientMessageToAll(HELLBLAU,stringbert); }
return 1;
}
Funkt alles, nur es postet den Text 2x also so:
(( Team Chat Ien_Levin: Hallo ))
(( Team Chat Ien_Levin: Hallo ))