SA-MP Forums Archive
[Ajuda] sobre como aumentar para maximo o nivel de procurado - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] sobre como aumentar para maximo o nivel de procurado (/showthread.php?tid=396670)



sobre como aumentar para maximo o nivel de procurado - loukofire - 01.12.2012

Код:
public SetPlayerCriminalEx(playerid,declare,reason[])
{//example: SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
	if(IsPlayerConnected(playerid))
	{
	    new points = WantedPoints[playerid];
		new turned[MAX_PLAYER_NAME];
		new turner[MAX_PLAYER_NAME];
		new turnmes[128];
		new wantedmes[128];
		new wlevel;
		new string[128];
		strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);
		GetPlayerName(playerid, turned, sizeof(turned));
		if (declare == 255)
		{
			format(turner, sizeof(turner), "Unknown");
			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);
			}
		}
		if(PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pTesterDuty] == 1)
		{
			format(string, sizeof(string),"Seu crime foi %s, Reportado por %s, Mas voce й um admin em Serviзo. Crime Cancelado",reason,turner);
			SendClientMessage(playerid, COLOR_LIGHTRED, string);
			return 1;
		}
		SendClientMessage(playerid, COLOR_LIGHTRED, "Se voce for se render use /(sur)render!");
		strmid(PlayerInfo[playerid][pCrimeReason], reason, 0, strlen(reason), 255);
		PlayerInfo[playerid][pWanted] = 1;
		PlayerInfo[playerid][pWantedLevel] = points;
  		PlayerInfo[playerid][pCrimes] += 1;
	    SetPlayerColor(playerid, 0xFF990000);
		format(turnmes, sizeof(turnmes), "Voce cometeu o crime: %s. Reportado: %s.",reason,turner);
        PlayCrimeReportForPlayer(playerid,playerid,5);
		SendClientMessage(playerid, COLOR_DARKNICERED, turnmes);
		if(points > 0)
		{
		    new yesno;
            if(points == 3) { if(WantedLevel[playerid] != 1) { WantedLevel[playerid] = 1; wlevel = 1; yesno = 1; } }
			else if(points >= 4 && points <= 5) { if(WantedLevel[playerid] != 2) { WantedLevel[playerid] = 2; wlevel = 2; yesno = 1; } }
			else if(points >= 6 && points <= 7) { if(WantedLevel[playerid] != 3) { WantedLevel[playerid] = 3; wlevel = 3; yesno = 1; } }
			else if(points >= 8 && points <= 9) { if(WantedLevel[playerid] != 4) { WantedLevel[playerid] = 4; wlevel = 4; yesno = 1; } }
			else if(points >= 10 && points <= 11) { if(WantedLevel[playerid] != 5) { WantedLevel[playerid] = 5; wlevel = 5; yesno = 1; } }
			else if(points >= 12 && points <= 13) { if(WantedLevel[playerid] != 6) { WantedLevel[playerid] = 6; wlevel = 6; yesno = 1; } }
			else if(points >= 14 && points <= 15) { if(WantedLevel[playerid] != 7) { WantedLevel[playerid] = 7; wlevel = 7; yesno = 1; } }
			else if(points >= 16 && points <= 17) { if(WantedLevel[playerid] != 8) { WantedLevel[playerid] = 8; wlevel = 8; yesno = 1; } }
			else if(points >= 18 && points <= 19) { if(WantedLevel[playerid] != 9) { WantedLevel[playerid] = 9; wlevel = 9; yesno = 1; } }
			else if(points >= 20 && points <= 21) { if(WantedLevel[playerid] != 10) { WantedLevel[playerid] = 10; wlevel = 10; yesno = 1; } }
			else if(points >= 22) { if(WantedLevel[playerid] != 11) { WantedLevel[playerid] = 11; wlevel = 11; yesno = 1; } }
			if(WantedLevel[playerid] >= 1) { if(gTeam[playerid] == 3) { gTeam[playerid] = 4; } }
			if(yesno)
			{
				format(wantedmes, sizeof(wantedmes), "Nivel de Procurado: %d", wlevel);
				SendClientMessage(playerid, COLOR_YELLOW, wantedmes);
				for(new i = 0; i < MAX_PLAYERS; i++)
				{
					if(IsPlayerConnected(i))
					{
					    if(IsACop(i))
					    {
							format(cbjstore, sizeof(turnmes), "HQ: Todas as Unidades APB: Reportado: %s",turner);
							SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
							format(cbjstore, sizeof(turnmes), "HQ: Crime: %s, Suspeito: %s",reason,turned);
							SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
							PlayCrimeReportForPlayer(i,playerid,5);
						}
					}
				}
			}
		}
	}//not connected
	return 1;
}



Re : sobre como aumentar para maximo o nivel de procurado - ipsBruno - 01.12.2012

Й sу usar SetPlayerWantedLevel.

Qual й a dъvida?


Re: sobre como aumentar para maximo o nivel de procurado - loukofire - 01.12.2012

poderia me aceitar la no skype?


Re : sobre como aumentar para maximo o nivel de procurado - ipsBruno - 01.12.2012

Tem bastante pedidos aqui, quem й vocк?


Re: sobre como aumentar para maximo o nivel de procurado - loukofire - 01.12.2012

hb.rebolation


Re: sobre como aumentar para maximo o nivel de procurado - Nice-.- - 01.12.2012

me aceita lб tbm й adelmoofc rlx que nem fico enchendo o saco