[Ajuda] /mp
#10

Sistema simples de PM que eu mesmo fiz

/pm [ID] [Texto]

pawn Код:
if(strcmp(cmd, "/pm", true) == 0)
{
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
        return SendClientMessage(playerid, 0xFF0000AA, "USO: /pm [ID] [Texto]");
    }
    new ID;
    ID = strval(tmp);
    if(!strlen(tmp))
    {
    return SendClientMessage(playerid, 0xFF0000AA, "USO: /pm [ID] [Texto]");
    }
    new Nome[MAX_PLAYER_NAME];
    new String[128];
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(String, sizeof(String), "PM De %s: %s",Nome, cmdtext[6]);
    SendClientMessage(ID,0xFFFF00AA,String);
    return 1;
}
Reply


Messages In This Thread
[Ajuda] /mp - by gabriel_ - 30.12.2010, 14:57
Re: [Ajuda] /mp - by Ricop522 - 30.12.2010, 15:11
Re: [Ajuda] /mp - by Ricop522 - 30.12.2010, 15:13
Re: [Ajuda] /mp - by vinewood - 30.12.2010, 15:16
Re: [Ajuda] /mp - by gabriel_ - 30.12.2010, 15:18
Re: [Ajuda] /mp - by vinewood - 30.12.2010, 15:22
Re: [Ajuda] /mp - by CyNiC - 30.12.2010, 15:23
Re: [Ajuda] /mp - by gabriel_ - 30.12.2010, 15:26
Re: [Ajuda] /mp - by zSuYaNw - 30.12.2010, 17:12
Re: [Ajuda] /mp - by TiagoPS - 30.12.2010, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)