How can i set permission user groups only? *Urgent* -
dbh4you - 22.12.2009
Hi,
I own a server a rp and i really need to add items yet it's not only me who can add the items (Normal members can).
I'm using
http://forum.sa-mp.com/index.php?topic=104007.0 is there anyway i can edit it so only rcon admins can use it?
Thanks,
Dbh4you
Re: How can i set permission user groups only? *Urgent* -
John Rockie - 22.12.2009
i don't know.. but what you can do is, lock your server or only 1 max player.
Re: How can i set permission user groups only? *Urgent* -
dbh4you - 22.12.2009
Can't, they expect it to be online 24/7.
Besides, that's not why i wanted a ingame editor, i wanted to edit stuff whilst the server is online so that people can check the accomplishment.
Anyone know a code to expel member's and admins from using the commands and grant access for rcon?
Re: How can i set permission user groups only? *Urgent* -
adsy - 22.12.2009
surely you can test it offline upload during gameplay and then hit the reset button, the server shouldnt kick everyone off and if your using a database then the data shouldnt be lost either.
Re: How can i set permission user groups only? *Urgent* -
dbh4you - 22.12.2009
Nope, i've got other rcon admins who want to help me reconstruct it.
Re: How can i set permission user groups only? *Urgent* -
Fj0rtizFredde - 22.12.2009
You will have to use IsPlayerAdmin(playerid) at every command (I think you can do it to the whole callback to but im not sure) :P
Re: How can i set permission user groups only? *Urgent* -
dbh4you - 23.12.2009
Quote:
Originally Posted by Fj0rtizFredde
You will have to use IsPlayerAdmin(playerid) at every command (I think you can do it to the whole callback to but im not sure) :P
|
Thanks, i will have a look.
Re: How can i set permission user groups only? *Urgent* -
dbh4you - 23.12.2009
Didn't work.
Can someone download it and check please?
Only take about 5seconds, or can you view
http://pastebin.com/f4aeb55cf
Re: How can i set permission user groups only? *Urgent* -
Deat_Itself - 23.12.2009
Quote:
Originally Posted by dbh4you
|
you want that this commands would be used by only admins ?
pawn Код:
if(!IsPlayerAdmin(playerid)) return 0;
else
pawn Код:
dcmd_addobject(playerid,params[])
{
//add it here in every command
Re: How can i set permission user groups only? *Urgent* -
dbh4you - 23.12.2009
Thanks, i added that (In a different way) and it didn't work lol.