[Pedido] fαlαя cσмσ συтяσ jσgαdσя
#5

Acabei de fazer sу para ti
Adapta as suas necessidades
pawn Код:
if(strcmp(cmd, "/mp", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
        return 1;
    }
    new ID;
    ID = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
        return 1;
    }
    new Texto;
    Texto = strval(tmp);
    new Nome[MAX_PLAYER_NAME];
    new String[128];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(String, sizeof(String), "PM De %s: %s",Nome, Texto);
    SendClientMessage(ID,0xFFFF00AA,String);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)