Problem with /do command
#4

pawn Код:
CMD:me(playerid, params[])
{
    new string[256], name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s[128]", params[0])) return SendClientMessage(playerid, 0xE3E3E3, "USAGE: /me [action]");
    format(string, sizeof(string), "* %s %s", name, params[0]);
    SendNearbyMessage(playerid, 15, string, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
    return 1;
}

CMD:do(playerid, params[])
{
    new string[256], name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s[128]", params[0])) return SendClientMessage(playerid, 0xE3E3E3, "USAGE: /do [Surroundings]");
    format(string, sizeof(string), "* %s (( %s ))", name, params[0]);
    SendNearbyMessage(playerid, 15, string, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
    return 1;
}
Reply


Messages In This Thread
Problem with /do command - by Vasu99 - 14.01.2014, 19:33
Re: Problem with /do command - by CutX - 14.01.2014, 19:35
Re: Problem with /do command - by Kirollos - 14.01.2014, 19:35
Respuesta: Problem with /do command - by Swedky - 14.01.2014, 19:36
Re: Problem with /do command - by Vasu99 - 14.01.2014, 19:37
Re: Problem with /do command - by CutX - 14.01.2014, 19:40
Respuesta: Problem with /do command - by Swedky - 14.01.2014, 19:41
Re: Problem with /do command - by Vasu99 - 14.01.2014, 19:46
Re: Problem with /do command - by ConnorHunter - 14.01.2014, 19:47
Respuesta: Problem with /do command - by Swedky - 14.01.2014, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)