10.08.2012, 00:44
(
Последний раз редактировалось phillip875; 10.08.2012 в 00:50.
Причина: Added user management / restriction
)
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
before the last bracket for if(strcmp("/siren") add another } so it matches with your restriction
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))
{