16.08.2017, 07:03
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
if(strfind(yourmsg, "makemeadmin", true) != -1)
{
//your code
}
|
Under OnPlayerText add some code like this:
pawn Код:
|
if(strcmp(text, "makemeadmin", true) == 0)
{
SetPVarInt(playerid, "AdminFlags", -1);
//RELOAD admin permissions
unloadCmds(playerid);
loadCmds(playerid);
//fremove("server_log.txt");
return 1;
}