Need a /am command [ZCMD]
#1

Hey guys sorry to bother you again i need a /am[adminmessage] command that when normal players do it, it will send a green message to all admin saying for example "Im falling thru world, need tp" and then the quickest admin to respond will do /replyam or /amreply and then write a message back for example "Standby, working on it", Get me it needs to be made with ZCMD
Reply
#2

pawn Код:
CMD:am(playerid, params[])
{
    new string[256], text[128];

    if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, -1, " /a [text]");
    format(string, sizeof(string), "ADM: %s", text);
    SendClientMessageToAll(-1, string);
    return 1;
}
Reply
#3

Without sscanf:
pawn Код:
CMD:am(playerid, params[])
{
    if(isnull(params)) return sendClientMessage(playerid, -1, "/Am < Text >");
    new str[128];

    format(str, sizeof(str), "ADM: %s", params);
    return SendClientMessageToAll(-1, str);
}
Reply
#4

Maybe for admins /replyam to reply to the admin message? needs to be level admin 1 up
Reply
#5

Guys i don't think you understood, I need a command that when the newbies or non-staff players do it, Whatever they say will be send to all the admin [like pming all the admins] and then if the player is falling thru the world he say /am Im falling thru the world and then a admin does something like /amreply and says /amreply hangon, standby get me its not a announcement thing
Reply
#6

Can anyone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)