15.01.2011, 02:33
Sуh pra minimizar um pouco:
Subistituindo:
й a mesma coisa sу q fica mais limpo.
pawn Код:
if(GetPlayerWantedLevel(killerid) < 6)
{
SetPlayerWantedLevel(killerid, (GetPlayerWantedLevel(killerid)+1));
}
pawn Код:
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);}
}