#1

pawn Код:
COMMAND:say(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,ORANGE,"You need to be level 1 to use this command!");
    SendRconCommand("say");
    return 1;
}
When i go ingame i cant do it.
Reply
#2

Can you expand "i cant do it" ?
Reply
#3

replace "SendRconCommand("say");" with:
pawn Код:
new string[200];
format(string, sizeof(string), "say %s", params);
SendRconCommand(string);
Reply
#4

Quote:
Originally Posted by Sascha
Посмотреть сообщение
replace "SendRconCommand("say");" with:
pawn Код:
new string[200];
format(string, sizeof(string), "say %s", params);
SendRconCommand(string);
Isn't 128 enough ?

Plus, Why do that, when you can use /rcon login [password], then /rcon say ?
Reply
#5

possible.. I didn't care about the string length here lol...
Reply
#6

Thanks Guys

@Wor i will add it to my admin system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)