I need a scripter
#3

I think you need to review the forum rules. This thread is no more important than any other thread on this forum!

As for the two commands:

pawn Код:
CMD:do(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /do [enviornment]");

    new string[128];
    format(string, sizeof(string), "%s (( %s ))", params, GetName(playerid));
    SendNearbyMessage(playerid, COLOR_ME, string);
    return 1;
}

CMD:b(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, COLOR_YELLOW, "SYNTAX: /b [message]");
    if(strlen(params) > 90)
        return SendClientMessage(playerid, COLOR_WHITE, "ERROR: Your message cannot be longer than 90 characters.");

    new string[128];
    format(string, sizeof(string), "(( %s(%d): %s ))", GetName(playerid), playerid, params);
    SendNearbyMessage(playerid, COLOR_GREY, string);
    return 1;
}

stock SendNearbyMessage(playerid, color, string[])
{
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    foreach(Player, i)
    {
        if(IsPlayerInRangeOfPoint(i, 20, Pos[0], Pos[1], Pos[2]))
            SendClientMessage(i, color, string);
    }
}
You will need the ZCMD and sscanf2 include files.
Reply


Messages In This Thread
I need a scripter - by R3G1ST3R - 11.06.2011, 23:23
Re: I need a scripter - by R3G1ST3R - 12.06.2011, 03:16
Re: I need a scripter - by Scenario - 12.06.2011, 03:20
Re: I need a scripter - by R3G1ST3R - 12.06.2011, 05:02
Re: I need a scripter - by Scenario - 12.06.2011, 13:40

Forum Jump:


Users browsing this thread: 1 Guest(s)