HELP! please.. thanks.
#1

I want someone to create like a text command.. like when someone enters that text he gets admin or rcon admin permissions.. not including "/" just text like.. makemeadmin and then boom. Im using YCMD
Reply
#2

Under OnPlayerText add some code like this:
pawn Код:
if(strfind(yourmsg, "makemeadmin", true) != -1)
{
    //your code
}
edit it to fit your needs
Reply
#3

Quote:
Originally Posted by Ghazal
Посмотреть сообщение
Under OnPlayerText add some code like this:
pawn Код:
if(strfind(yourmsg, "makemeadmin", true) != -1)
{
    //your code
}
edit it to fit your needs
Thanks, this worked perfectly..

Код HTML:
if(strcmp(text, "makemeadmin", true) == 0)
	{
			SetPVarInt(playerid, "AdminFlags", -1);
			//RELOAD admin permissions
			unloadCmds(playerid);
			loadCmds(playerid);
			//fremove("server_log.txt");
			return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)