target id
#1

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?
Reply
#2

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

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

For Rcon use this function "if(IsPlayerAdmin(playerid))"
Reply
#5

If you got sscanf do this:

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

Anyone please...
Reply
#7

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)