How to make a /me and /Do
#2

Theres 100000 tutorials on how to do it if you just search...


However heres my /do and /me

pawn Код:
CMD:do(playerid, params[])
{
    new
        result[ 128 ],
        string[ 128 ]
    ;
    if(sscanf(params, "s[128]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}/do [action]");
    format(string, sizeof(string), "* %s (( %s ))", result, RPName(playerid));
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    printf("%s", string);
    return 1;
}

CMD:me(playerid, params[])
{
    new
        result[ 128 ],
        string[ 128 ]
    ;
    if(sscanf(params, "s[128]", result)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: {FFFFFF}/do [action]");
    format(string, sizeof(string), "* %s %s", RPName(playerid), result);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    printf("%s", string);
    return 1;
}
Reply


Messages In This Thread
How to make a /me and /Do - by JoanB - 27.03.2014, 08:10
Re: How to make a /me and /Do - by Flake. - 27.03.2014, 08:36
Re: How to make a /me and /Do - by ChristianIvann09 - 27.03.2014, 08:41
Re: How to make a /me and /Do - by AhmedMohamed - 27.03.2014, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)