18.03.2010, 22:21
first, i would just make a command that will make a player 1+ wanted level. then, if it works, check if that command is used by the faction/team (if gTeam[playerid]==TEAM_COP). then, check for the cop being in range (visual or your preferred range). always make sure its working by sending a message to all players so they see its not messed up.
then i would add some fines/fees to the suspect player so he has to pay the ticket...
and finally, to not being that command abused 10 times-in-a-row, add a gVariable to the victim player set to 1 if he got reported already as suspect, OR, make a timer so a cop needs some time, but i guess the first is better...
then i would add some fines/fees to the suspect player so he has to pay the ticket...
and finally, to not being that command abused 10 times-in-a-row, add a gVariable to the victim player set to 1 if he got reported already as suspect, OR, make a timer so a cop needs some time, but i guess the first is better...