/suspect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /suspect (
/showthread.php?tid=135062)
/suspect -
abineri - 18.03.2010
I am working on a police script at the moment and i have some commands but i need a /suspect command unfortuantly i have no idea where to begin with this and i have done alot of searching and havent found anything usefull yet. i was wodnering if someone could help me and explain to me on what i need to do.
Re: /suspect -
Babul - 18.03.2010
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...
Re: /suspect -
abineri - 18.03.2010
Quote:
Originally Posted by Babul
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...
|
ok thanks i got some of that but i am new but i havent covered everthing i have read tutorials on samp wiki but some of them are no help but i need i dno how to make a command that will make a player 1+ wanted level how would i do this?
Re: /suspect -
Steven82 - 18.03.2010
Could this command be made like this:
then do the skin id?
Re: /suspect -
abineri - 18.03.2010
Quote:
Originally Posted by Steven82
Could this command be made like this:
then do the skin id?
|
im not sure what you mean like what i need is for the police to go /suspect [playerid] [reason] but i have been searching for ages and i have no idea on how to do it
Re: /suspect -
Steven82 - 18.03.2010
I'm using it on my scratch free roam roleplay but i need a /suspect command to.
I have cuff commands made by like where instead of teams i have isplayercop = 280(skin id or sumthing maybe i try to create one for you)