02.05.2011, 17:38
Hi, i can't find this thing.
So I have /help command in wich normal player (not admin) can see all available commands. I know how to do that.
So it looks like:
And now i want to do in next line SendClientMessage wich check if is admin on RCON login. If he is, he can see another line when he type /help like this:
So i don't know how to do that second SendClientMessage , and that line must be only visible for RCON admins.
I mean if the player is /rcon login 55555 he can se this second SendClientMessage
Anyone can help me?
So I have /help command in wich normal player (not admin) can see all available commands. I know how to do that.
So it looks like:
pawn Код:
if (strcmp("/pomoc", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "mycommands xD");
}
pawn Код:
if (strcmp("/pomoc", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "mycommands xD");
SendClientMessage(playerid, 0xFFFFFFFF, "ADMIN Cmds: i don't know how to do that thing");
}
I mean if the player is /rcon login 55555 he can se this second SendClientMessage
Anyone can help me?