SA-MP Forums Archive
Adminlevel and ModLevel - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Adminlevel and ModLevel (/showthread.php?tid=110714)



Adminlevel and ModLevel - makogemata - 28.11.2009

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?


Re: Adminlevel and ModLevel - Karlip - 28.11.2009

Код:
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;
  }



Re: Adminlevel and ModLevel - makogemata - 28.11.2009

Thanks karlip ..
It works