[Pedido] Fake Chat..
#2

pawn Код:
CMD:pm(playerid, params[]) // PM ( Para todos os players )
{
        new id;
        new string[128];
        new string1[128];
        new msg[128];
        new playername[MAX_PLAYER_NAME];
        new playername2[MAX_PLAYER_NAME];

        GetPlayerName(playerid, playername, sizeof(playername));
        GetPlayerName(id, playername2, sizeof(playername2));
        if(sscanf(params, "us", id, msg)) return SendClientMessage(playerid, INFO,"[ USO: ] /pm [playerid] [mensagem]");
        if(!IsPlayerConnected(id)) return SendClientMessage(playerid, FAIL,"[ ERRO: ] O player nгo estб conectado.");
        format(string, sizeof(string), "PM enviada para %s: %s", playername2, msg);
        SendClientMessage(playerid, INFO2, string);
        format(string1, sizeof(string1), "PM recebida de %s: %s", playername, msg);
        SendClientMessage(id, INFO3, string1);
        return 1;
}
Comando do meu sistema de admin, agora edite-o como quiser.

Includes:

ZCMD
sscanf
Reply


Messages In This Thread
Fake Chat.. - by Brunooh - 29.08.2013, 06:54
Re: Fake Chat.. - by bruxo00 - 29.08.2013, 10:23
Re: Fake Chat.. - by .FuneraL. - 29.08.2013, 10:29
Re: Fake Chat.. - by bruxo00 - 29.08.2013, 11:11
Re: Fake Chat.. - by .FuneraL. - 29.08.2013, 12:21
Re: Fake Chat.. - by Kuddy - 29.08.2013, 14:55
Re: Fake Chat.. - by PT - 29.08.2013, 16:39
Re: Fake Chat.. - by Brunooh - 29.08.2013, 19:45
Re: Fake Chat.. - by Kuddy - 29.08.2013, 20:29
Re: Fake Chat.. - by Brunooh - 29.08.2013, 21:19

Forum Jump:


Users browsing this thread: 2 Guest(s)