Posts: 13
Threads: 1
Joined: May 2009
Reputation:
0
how can i make more cmds? and how can i make cmds like /admins and show me the admins?Pls Pls Pls help
Posts: 13
Threads: 1
Joined: May 2009
Reputation:
0
thx alot
can you send me another link with dcmd cuz when i click on it gives error
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
If you want to make your own admin script and have all of the admins displayed as /admins there are 2 options.
You can either have them like:
Bob (lvl1)
Fred (lvl2)
or
Bob(lvl1), Fred(lvl2)
To do the first one you just need a for loop checking if each player is an admin, and if they are do a SendClientMessage. The second requires you to use something like strcat, or format if you're not comfortable with strcat.
Posts: 13
Threads: 1
Joined: May 2009
Reputation:
0
i am new in making scripts sooo
Posts: 1,293
Threads: 6
Joined: Jul 2008
Reputation:
0
In that case stick to a pre-made admin script, like xadmin, gadmin, ladmin ... generally any letter with "admin" on the end.. They're easy to find in the "Filterscripts and Includes" thread.
Posts: 13
Threads: 1
Joined: May 2009
Reputation:
0
yea i mean if i have
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
how can i put a second command?
Posts: 13
Threads: 1
Joined: May 2009
Reputation:
0
i put at /(mycommand) "2" too?