/me command
#5

pawn Код:
COMMAND:me(playerid, cmdtext)
{
    new name[24], string[128];
    if(sscanf(cmdtext, "s[128]", cmdtext)) return SendClientMessage(playerid, 0xFFFFFFAA, "/me <action>");
    GetPlayerName(playerid, name, 24);
    format(string, sizeof(string), "* %s %s ", name, cmdtext);
    SendClientMessageToAll(0xFFFFFFAA, string);
    return 1;
}
This should work, you need ZCMD & SSCANF2
Reply


Messages In This Thread
/me command - by ColdIce - 21.06.2011, 14:24
Re: /me command - by Wesley221 - 21.06.2011, 14:27
Re: /me command - by Basicz - 21.06.2011, 14:32
Re: /me command - by ColdIce - 21.06.2011, 14:48
Re: /me command - by Wesley221 - 21.06.2011, 15:06
Re: /me command - by ColdIce - 21.06.2011, 15:16
Re: /me command - by RoleplayEditor - 21.06.2011, 15:44
Re: /me command - by ColdIce - 21.06.2011, 16:10
Re: /me command - by ColdIce - 21.06.2011, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)