Rcon cmds
#1

Excuse me guys how can i do to make a cmd works without being admin /rcon login ? i mean how can i edit the cmd to just if i am admin lvl 2 you can use it no need to be logged in to rcon. thanks in advance
Reply
#2

Try SendRconCommand in script, You can find details here
Reply
#3

solved
Reply
#4

my commands all work good but i only need to log in rcon to use it and i dont want it i would like to remove it
Reply
#5

Quote:
Originally Posted by Jaua10
Посмотреть сообщение
my commands all work good but i only need to log in rcon to use it and i dont want it i would like to remove it
Do you have an admin system and how are you declaring it?
Reply
#6

yes i have a simple basic admin system, what do you men how are declaring what?
Reply
#7

Do you have PlayerInfo[playerid][pInfo];
Reply
#8

IsPlayerAdmin is a SAMP check to see if a player is rcon admin, so if you're not logged in, it's not going to work.

Like Mike861 said, you'll need to create an admin system.
Reply
#9

YES I HAVE pInfo like this

PHP код:
enum pInfo
{
    
pPass,
    
pCash,
    
pSkin,
    
pLevel,
    
pInt,
    
pVW,
    
pAdmin,
    
pSecKey,
    
pKills,
    
pDeaths,
    
Float:pFacingAngle,
    
Float:pHealth,
    
Float:pArmour,
    
Float:pLastX,
    
Float:pLastY,
    
Float:pLastZ
}
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
works?
Reply
#10

Instead of if(!IsPlayerAdmin(playerid)) {return 0;} do if(PlayerInfo[playerid][pAdmin] > 0) {return 0;}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)