[Code request] /me command
#2

pawn Код:
CMD:me(playerid, params[])
{
    new
        string[128],
        action[100];
    if(sscanf(params, "s[100]", action))
    {
        SendClientMessage(playerid, -1, "USAGE: /me [action]");
        return 1;
    }
    else
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,sizeof(pName));
        format(string, sizeof(string), "* %s %s",pName, action);
    }
    return 1;
}
CMD:do(playerid, params[])
{
    new
        string[128],
        action[100];
    if(sscanf(params, "s[100]", action))
    {
        SendClientMessage(playerid, -1, "USAGE: /do [action]");
        return 1;
    }
    else
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,sizeof(pName));
        format(string, sizeof(string), "* %s ((%s))",action, pName);
    }
    return 1;
}
here you go
Reply


Messages In This Thread
[Code request] /me command - by Songason - 18.07.2012, 16:00
Re: [Code request] /me command - by Gangster-rocks - 18.07.2012, 16:04
Re: [Code request] /me command - by God'Z War - 18.07.2012, 16:05
Re: [Code request] /me command - by Dan. - 18.07.2012, 16:06
Re: [Code request] /me command - by Cxnnor - 18.07.2012, 16:17
Re: [Code request] /me command - by Songason - 18.07.2012, 16:32
Re: [Code request] /me command - by Captain_Mani - 18.07.2012, 16:42
Re: [Code request] /me command - by Songason - 18.07.2012, 16:51
Re: [Code request] /me command - by mamorunl - 18.07.2012, 16:54
Re: [Code request] /me command - by Songason - 18.07.2012, 17:04

Forum Jump:


Users browsing this thread: 1 Guest(s)