HELP! please.. thanks.
#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


Messages In This Thread
HELP! please.. thanks. - by Puff - 16.08.2017, 07:03
Re: HELP! please.. thanks. - by Ghazal - 16.08.2017, 07:26
Re: HELP! please.. thanks. - by Puff - 16.08.2017, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)