Hab es genau so drin wie du es mir geschrieben hast, Beavis.
new str[64];
if(isPlayerInFrakt(killerid,1) || isPlayerInFrakt(killerid,2) || isPlayerInFrakt(killerid,3) && GetPVarInt(playerid,"Wanteds") >= 1)
if(GetPVarInt(playerid,"Wanteds") != 0)
{
format(str,sizeof(str),"HQ: %s hat den Gesuchten %s getötet!",SpielerName(killerid),SpielerName(playerid));
if(killerid == INVALID_PLAYER_ID)goto noSchleife;
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(isPlayerInFrakt(killerid,1) || isPlayerInFrakt(killerid,2) || isPlayerInFrakt(killerid,3))
{
SendClientMessage(i,0x548598FF,"|---| Der Gesuchte %s wurde getötet |---|");
SendClientMessage(i,0x00489184,str);
}
}
}
noSchleife:
TextDrawHideForPlayer(playerid,WantedStern[playerid]);
TextDrawHideForPlayer(playerid,WantedAnzahl[playerid]);
SetPlayerPos(playerid,2799.8767,2757.6726,10.8203);
format(str,sizeof str,"~w~Gesuchten getötet ~g~+%i",(GetPVarInt(playerid,"Wanteds")*150));
if(killerid != INVALID_PLAYER_ID){GameTextForPlayer(killerid,str,3000,1);}
SetPVarInt(playerid,"Wanteds",0);
}
aber server schmiert immer noch weg ..