/suspect
#1

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.
Reply
#2

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...
Reply
#3

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?
Reply
#4

Could this command be made like this:

then do the skin id?
Код:
Isplayercop
Reply
#5

Quote:
Originally Posted by Steven82
Could this command be made like this:

then do the skin id?
Код:
Isplayercop
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
Reply
#6

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)