Help with RCON
#1

Hello i have a question how can i create that RCON admin onlie can use some commands pleas help !!!
sry for bad english i use Strcmd and GM is my own
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/COMMAND")){
        if(IsPlayerAdmin(playerid)){ //The "IsPlayerAdmin" checks if the player is an RCON admin!
            //The command
        }
        else{ //If he's NOT an RCON admin
            //Do you wanna do something? Like a message?
        }
    }
    return 1;
}
So the "IsPlayerAdmin(playerid)"
Reply
#3

Hey dude Thanks ! I will try it now !
Reply
#4

Okay, but you won't need to try it I guess, because I'm sure that this'll work.

This forum requires that you wait 60 seconds between posts. Please try again in 16 seconds.
This forum requires that you wait 60 seconds between posts. Please try again in 4 seconds.
So I must learn counting again. I had to count from 16 to 0, but ehm. It gave me that msg again xD
Reply
#5

Yes its work for just one for second and third i gat warings and they dont work how to fix it
Reply
#6

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/COMMAND", cmdtext, true, 10) == 0)
    {
        if(IsPlayerAdmin(playerid))
        {
            //The "IsPlayerAdmin" checks if the player is an RCON admin!
            //The command
        }
        else
        {
            //If he's NOT an RCON admin
            //Do you wanna do something? Like a message?
        }
    }
    return 1;
}
Reply
#7

It should be handy if you give the warnings
My code seems to be okay
Reply
#8

thinking when will i be A pro scripter
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)