22.11.2014, 21:56
Bom pessoal estou querendo fazer um tipo de recompensa se um cop matar um procurado, ele ganha um dinheiro a mais.
Tipo matar o procurado de acordo com o nivel de procurado dele, exemplo
1 estrela = $25
2 estrela = $50
3 estrela = $75
4 estrela = $100
e assim por diante, olhem
Tipo matar o procurado de acordo com o nivel de procurado dele, exemplo
1 estrela = $25
2 estrela = $50
3 estrela = $75
4 estrela = $100
e assim por diante, olhem
pawn Код:
if(DadosJogador[killerid][ORGANIZACAO_JOGADOR] == POLICIA_MILITAR)
{
new procuradolevel,
rand = random(sizeof(CelasPM));
procuradolevel = DadosJogador[playerid][NIVEL_PROCURADO];
if(DadosJogador[playerid][NIVEL_PROCURADO] > 0)
{
ResetPlayerWeapons(playerid);
RetirarEquipamento[playerid] = 0;
DadosJogador[playerid][JOGADOR_PRESO] = 1;
DadosJogador[playerid][LOCAL_PRESO] = 1;
DadosJogador[playerid][NIVEL_PROCURADO] = 0;
DadosJogador[playerid][DINAMITE_JOGADOR] = 0;
Jogador_Algemado[playerid] = false;
SkinsJogadores(playerid);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
RemovePlayerAttachedObject(playerid, Algemas_Suspeito);
DadosJogador[playerid][TEMPO_PRESO] = procuradolevel * 60;
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, CelasPM[rand][0], CelasPM[rand][1], CelasPM[rand][2]);
SetPlayerFacingAngle(playerid, CelasPM[rand][3]);
format(String, sizeof(String), "%s: Vocк foi morto e preso pelo policial %s e pegou %s segundos de cadeia.", NomeORG(playerid), PlayerNick(playerid), procuradolevel);
SendClientMessage(playerid, COR_AMARELO, String);
format(String, sizeof(String), "Vocк matou o suspeito %s, com %d Nivel de procura, vocк foi recompensado!!!", PlayerNick(killerid), DadosJogador[killerid][NIVEL_PROCURADO]);
SendClientMessage(killerid, COR_AMARELO, String);
}
}

