Police Dash Siren
#6

You didn't need to copy and paste the "public OnPlayerCommandText(playerid,cmdtext[])"

You should of copied everything from if(strcmp("/siren") to before "return 0;" and pasted it where your existing one was.

Add "new idx;" in the command or make it a global.

Also add "new Siren[MAX_VEHICLES];"

To restrict it

after
[PAWN]if(strcmp("/siren",cmdtext,true,10) == 0)
{[/PAWN}

put
pawn Код:
if(IsACop(playerid) || IsAnAgent(playerid))
{
before the last bracket for if(strcmp("/siren") add another } so it matches with your restriction
Reply


Messages In This Thread
Police Dash Siren - by Melon - 09.08.2012, 20:28
Re: Police Dash Siren - by phillip875 - 09.08.2012, 23:32
Re: Police Dash Siren - by Melon - 09.08.2012, 23:39
Re: Police Dash Siren - by phillip875 - 09.08.2012, 23:56
Re: Police Dash Siren - by Melon - 10.08.2012, 00:17
Re: Police Dash Siren - by phillip875 - 10.08.2012, 00:44
Re: Police Dash Siren - by phillip875 - 10.08.2012, 00:53
Re: Police Dash Siren - by Melon - 10.08.2012, 01:09
Re: Police Dash Siren - by EvanA - 28.07.2013, 19:12
Re: Police Dash Siren - by BossZk - 28.07.2013, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)