A Request Help command
#4

Sounds simple enough.

pawn Код:
CMD:requesthelp(playerid, params[])
{
    new Sender[MAX_PLAYER_NAME];
    new Str[128];
    GetPlayerName(playerid, Sender, sizeof(Sender));
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /requesthelp [reason]");
    format(Str, sizeof(Str), "[Help Needed] %s: %s", Sender, params);
    SendClientMessageToAll(COLOR_LIGHTBLUE, Str);
    return 1;
}
This is a simple example, which would Send the message to all players if someone needs help. What ever variables you have included into your gamemode regarding Helpers/Admins, you would need to make minor edits to the command posted.
Reply


Messages In This Thread
A Request Help command - by ryankielly - 15.07.2011, 10:30
Re: A Request Help command - by Cody9611 - 15.07.2011, 11:08
Re: A Request Help command - by ryankielly - 16.07.2011, 03:54
Re: A Request Help command - by Kush - 16.07.2011, 04:14
Re: A Request Help command - by Steven82 - 16.07.2011, 06:43
Re: A Request Help command - by ryankielly - 16.07.2011, 07:12
Re: A Request Help command - by MoroDan - 16.07.2011, 08:57
Re: A Request Help command - by ryankielly - 16.07.2011, 09:26
Re: A Request Help command - by MoroDan - 16.07.2011, 09:31
Re: A Request Help command - by Steven82 - 16.07.2011, 18:38

Forum Jump:


Users browsing this thread: 3 Guest(s)