20.04.2013, 23:38
Isso eu sei, e o resto?
pawn Код:
else
{
if(GetPlayerWantedLevel(playerid) == 1 || GetPlayerWantedLevel(playerid) == 2 || GetPlayerWantedLevel(playerid) == 3 || GetPlayerWantedLevel(playerid) == 4 || GetPlayerWantedLevel(playerid) == 5 || GetPlayerWantedLevel(playerid) == 6)
{
if(Profissao[killerid] == PROF_JUIZ || Profissao[playerid] == PROF_CIVIL || Profissao[killerid] == PROF_INTERPOL || Profissao[killerid] == PROF_CIVIL || Profissao[killerid] == PROF_FBI || Profissao[killerid] == PROF_CIA || Profissao[killerid] == PROF_ROTA || Profissao[killerid] == PROF_RODOVIARIA || Profissao[killerid] == PROF_FLORESTAL || Profissao[killerid] == PROF_FEDERAL)
{
if(Assalto[playerid] == 0)
{
Preso[playerid] = true;
}
if(Assalto[playerid] == 1)
{
new string[128], killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
ResetPlayerMoneyEx(playerid);
GivePlayerMoneyEx(killerid, 800);
format(string, sizeof(string), "(~) %s recebeu uma recompensa por capturar o ladrгo %s.", killer, nome(playerid));
SendClientMessageToAll(0x7FFF00AA, string);
SendClientMessage(killerid, COR_VERDE, "(INFO) Vocк recebeu uma recompensa de R$800,00 pelo уtimo serviзo!");
UsouComando[playerid][8] = 0;
Preso[playerid] = true;
}
}
}
else
{
if(GetPlayerWantedLevel(killerid) == 0){SetPlayerWantedLevel(killerid, 1);}
else if(GetPlayerWantedLevel(killerid) == 1){SetPlayerWantedLevel(killerid, 2);}
else if(GetPlayerWantedLevel(killerid) == 2){SetPlayerWantedLevel(killerid, 3);}
else if(GetPlayerWantedLevel(killerid) == 3){SetPlayerWantedLevel(killerid, 4);}
else if(GetPlayerWantedLevel(killerid) == 4){SetPlayerWantedLevel(killerid, 5);}
else if(GetPlayerWantedLevel(killerid) == 5){SetPlayerWantedLevel(killerid, 6);}
else if(GetPlayerWantedLevel(killerid) == 6){SetPlayerWantedLevel(killerid, 6);}
}
}
}
return 1;
}