[DUDA] Sobre comando whisper /w
#7

pawn Код:
CMD:w(playerid, params[])
{
    new Fast_[128], Id_, string_[200];
    if(sscanf(params, "us[128]", Id_, Fast_)) return SendClientMessage(playerid,  COLOR_GRAD2, "/w [id] [texto]");

    new Name_[24];
   
    if(!IsPlayerConnected( Id_ ))
        return SendClientMessage(playerid,  COLOR_GRAD2, "Jugador no conectado");

    if( Info[ Id_ ][pAdminZC] >= 1 )
    {
    GetPlayerName( Id_, Name_, sizeof Name_);
    format( string_, sizeof string_, "Mensaje de de %s (%d): %s", Name_, playerid, Fast_);
    SendClientMessage( Id_, 0xDBDE50FF, string_);
    GetPlayerName( playerid, Name_, sizeof Name_);
    format( string_, sizeof string_, "Mensaje a %s (%d): %s", Name_, params[0], Fast_);
    SendClientMessage(playerid,  0xDBDE50FF, string_);
    }else return SendClientMessage(playerid,  COLOR_GRAD2, "Jugador no es administrador");
    return 1;
}
si hay error me dices cuales.
Reply


Messages In This Thread
[DUDA] Sobre comando whisper /w - by AnonymousXD - 15.07.2013, 10:15
Re: [DUDA] Sobre comando whisper /w - by Knight97 - 15.07.2013, 10:28
Re: [DUDA] Sobre comando whisper /w - by AnonymousXD - 15.07.2013, 11:05
Re: [DUDA] Sobre comando whisper /w - by Knight97 - 15.07.2013, 18:44
Re: [DUDA] Sobre comando whisper /w - by AnonymousXD - 16.07.2013, 09:30
Re: [DUDA] Sobre comando whisper /w - by AnonymousXD - 22.07.2013, 10:18
Respuesta: [DUDA] Sobre comando whisper /w - by Parka - 22.07.2013, 10:27
Re: [DUDA] Sobre comando whisper /w - by AnonymousXD - 22.07.2013, 10:32
Respuesta: Re: [DUDA] Sobre comando whisper /w - by Parka - 22.07.2013, 10:35
Re: [DUDA] Sobre comando whisper /w - by AnonymousXD - 22.07.2013, 11:31

Forum Jump:


Users browsing this thread: 3 Guest(s)