11.03.2011, 19:16
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
sry for bad english i use Strcmd and GM is my own
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;
}
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;
}