02.10.2014, 20:40
quando o player joga no servidor com um tempo de jogo o nivel de procura sobe sуzinho, e o policial tambem ta pegando nivel de procurado e gostaria de colocar pra cop n recerber nivel de nenhum geito eu nao consigo achar esse erro mais creio q pode ser aki me ajude.
PHP код:
public SetPlayerCriminal(playerid,declare,reason[])
{
if(IsPlayerConnected(playerid) && !IsACop(playerid))
{
if(WantedPoints[playerid] < 6) WantedPoints[playerid] += 1;
PlayerInfo[playerid][pCrimes] += 1;
new turned[MAX_PLAYER_NAME];
new turner[MAX_PLAYER_NAME];
new location[MAX_ZONE_NAME];
GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);
GetPlayerName(playerid, turned, sizeof(turned));
if (declare == 255)
{
format(turner, sizeof(turner), "Cвmeras de Seguranзa");
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
}
else
{
if(IsPlayerConnected(declare))
{
GetPlayerName(declare, turner, sizeof(turner));
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255);
strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255);
}
}
format(gstring, sizeof(gstring), "Vocк cometeu um crime ( %s ). Relato: %s",reason,turner);
SendClientMessage(playerid, 0xFF4800FF, gstring);
SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
format(gstring, sizeof(gstring), "Nнvel de procurado:{00EAEA} %d", WantedPoints[playerid]);
SendClientMessage(playerid, 0xFEBF01FF, gstring);
//ProcuradoPlayer(playerid);
for(new i = 0; i < MaiorID; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i) && admtrampando[i] != 1)
{
format(gstring, sizeof(gstring), "HQ - Todas as unidades: Relato:{01E8F3} %s",turner);
SendClientMessage(i, 0x0476F4FF, gstring);
format(gstring, sizeof(gstring), "HQ - Crime:{01E8F3} %s{0476F4}, Suspeito:{01E8F3} %s",reason,turned);
SendClientMessage(i, 0x0476F4FF, gstring);
if(GetPlayerInterior(playerid) == 0)
{
format(gstring, sizeof(gstring), "Local:{01E8F3} %s{0476F4}, Em Interior:{01E8F3} Nгo",location);
SendClientMessage(i, 0x0476F4FF, gstring);
}
else
{
format(gstring, sizeof(gstring), "Local:{01E8F3} %s{0476F4}, Em Interior:{01E8F3} Sim",location);
SendClientMessage(i, 0x0476F4FF, gstring);
}
}
}
}
}//not connected
}