09.02.2013, 16:18
(
Последний раз редактировалось Smikkeltoetje; 09.02.2013 в 16:31.
Причина: SOLVED
)
well i hope its a simple problem...
Let me explain what is going on,
I want a command that is like "/rcon say [text]" but without using rcon
(EXAMPLE) Admin Announcement: text comes here
long story short... i dont want to show any names whilest someone uses this command
(Because if use it now it says "Admin Announcement: playername, text")
let me place the code here for the person that can help me out !
I hope i have explained what im trying to do here well enough
so someone can help me
if i didn't, please let me know so i can explain what i actually mean ghehehe
Thanks alot for reading already and hopefully someone brings a solution
Let me explain what is going on,
I want a command that is like "/rcon say [text]" but without using rcon
(EXAMPLE) Admin Announcement: text comes here
long story short... i dont want to show any names whilest someone uses this command
(Because if use it now it says "Admin Announcement: playername, text")
let me place the code here for the person that can help me out !
pawn Код:
CMD:achat(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY, "You must be level 2 admin and up to use this command.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /achat [text]");
if(AntiAdv(playerid, params)) return 1;
if(PlayerInfo[playerid][pAdmin]) format(string, sizeof(string), "* Admin Accouncement: %s %s *", RPN(playerid), params);
else format(string, sizeof(string), "*Admin Announcement: %s %s *", RPN(playerid), params);
SendClientMessageToAll(COLOR_CYAN, string);
return 1;
}
so someone can help me
if i didn't, please let me know so i can explain what i actually mean ghehehe
Thanks alot for reading already and hopefully someone brings a solution