Adminlevel and ModLevel
#1

How do i make modelevel?
That there is Admins AND Modes.

My admin level is 1337 .
And mode level is hmm.. 1335 etc.

Then how i make that CMD to modes etc?
Код:
if(strcmp(cmd, "/disarm", true) == 0 && PlayerAdminLevel[playerid] == 1337)
	{
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disarm (id)");
  giveplayerid = strval(tmp);
  if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED, "Inactive player ID.");
  ResetPlayerWeapons(giveplayerid);
  return 1;
  }
What should i do?
Reply
#2

Код:
if(strcmp(cmd, "/disarm", true) == 0)
	{
  if(PlayerAdminLevel[playerid] == 1337)
{
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disarm (id)");
  giveplayerid = strval(tmp);
  if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED, "Inactive player ID.");
  ResetPlayerWeapons(giveplayerid);
  }
  return 1;
  }
Reply
#3

Thanks karlip ..
It works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)