[Ajuda] Command /Pm
#6

Sim vini eu vi no wiki, prefiro nao usar... essas sao as ъnicas formas?

tentei fazer assim mas deu erro..

pawn Код:
command(pm, playerid, params[])
{
   
    if(isnull(params)) return SendClientMessage(playerid, Vermelho, "[ x ] Uso correto: /Pm [ID] [Texto]");

    new texto[150];

    texto = strval(params[0]);

    if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, Vermelho, "[ x ] Jogador(a) nгo estб conectado(a)!");
    //if(strval(params) == playerid)return SendClientMessage(playerid, Vermelho, "[ x ] Vocк nгo pode usar esse comando em si prуprio!");
    format(dstring,sizeof(dstring),"(PM)(E) %s [%d] {FFFFFF}%s", Nome(playerid),playerid,texto);
    SendClientMessage(playerid,Cinza,dstring);
    format(dstring,sizeof(dstring),"(PM)® %s [%d] {FFFFFF}%s", Nome(playerid),playerid,texto);
    SendClientMessage(playerid,Cinza,dstring);
    GameTextForPlayer(playerid, "~y~PM RECEBIDA!", 3000, 5);
    PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
    return 1;
}
Reply


Messages In This Thread
Command /Pm - by Ts3 - 19.07.2014, 17:04
Re: Command /Pm - by ViniBorn - 19.07.2014, 17:07
Re: Command /Pm - by PT - 19.07.2014, 17:19
Re: Command /Pm - by Ts3 - 19.07.2014, 17:43
Re: Command /Pm - by ViniBorn - 19.07.2014, 17:45
Re: Command /Pm - by Ts3 - 19.07.2014, 17:51
Re: Command /Pm - by ViniBorn - 19.07.2014, 17:57
Re: Command /Pm - by Ts3 - 19.07.2014, 18:01
Re: Command /Pm - by ViniBorn - 19.07.2014, 18:03
Re: Command /Pm - by Ts3 - 19.07.2014, 18:36

Forum Jump:


Users browsing this thread: 2 Guest(s)