SA-MP Forums Archive
target id - 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)
+--- Thread: target id (/showthread.php?tid=430065)



target id - NicholasA - 12.04.2013

So I want the cmd /setadmin to set a targetid's
Код:
pInfo[playerid][AdminLevel] = 1;
It needs to be RCON only, how do i do this?


Re: target id - Giroud12 - 12.04.2013

Download Admin System..There are many /setadmin or set it manually


Re: target id - NicholasA - 12.04.2013

Quote:
Originally Posted by Giroud12
Посмотреть сообщение
Download Admin System..There are many /setadmin or set it manually
Thats not really what i was looking for -_-


Re: target id - Gamer_007 - 12.04.2013

For Rcon use this function "if(IsPlayerAdmin(playerid))"


Re: target id - Tamer - 12.04.2013

If you got sscanf do this:

pawn Код:
new id; // define a new id
pInfo[id][AdminLevel] = 1; // target id will be set



Re: target id - NicholasA - 12.04.2013

Anyone please...


Re: target id - RajatPawar - 12.04.2013

pawn Код:
CMD:setadminlevel(playerid, params[])
{
 new targetid, level;
 if(sscanf(params, "ui", targetid, level)) return SendClientMessage( error message );
 else // Other condition checks like IsPlayerConnected( targetid ) (not really needed with "u" specifier
 {
   pInfo[targetid][Adminlevel] = level;
  }
return 1;
}