[Pedido] Ajudante
#8

pequena base, sу arrumar do seu jeito, й usado a include: a_samp, zcmd, sscanf

pawn Код:
#include A_SAMP
#include  ZCMD
#include  SSCANF


new Ajudante [ MAX_PLAYERS ] ;

stock Nome ( playerid ) {

    new xName [ 21 ] ;
    GetPlayerName ( playerid, xName, 21 ) ;
    return xName ;
}

COMMAND:darajudante ( playerid, params[] ) {

    new ID, Nivel, Celulas [ 128 ] ;
   
    if ( sscanf ( params, "ud", ID, Nivel ) )
        return SendClientMessage ( playerid, -1, "[ USE ]: /darajudante [ID] [Nivel]" ) ;
       
    if ( Nivel < 1 || Nivel > 100 )
        return SendClientMessage ( playerid, -1, "[ ERRO ]: Nнveis de 1 e 100" ) ;
       
    Ajudante [ ID ] = Nivel ;
   
    format ( Celulas, 128, "[ PARABЙNS ]: %s foi promovido a Ajudante nivel %d - Por: %s", Nome ( ID ), Nivel, Nome ( playerid ) ) ;
    SendClientMessageToAll ( -1, Celulas ) ;
    return true ;
}
Nгo se esqueзa do Plugin sscanf
Reply


Messages In This Thread
Ajudante - by leonardoaparecido - 22.09.2013, 01:16
Re: Ajudante - by Coe1 - 22.09.2013, 01:25
Re: Ajudante - by leonardoaparecido - 23.09.2013, 23:24
Re: Ajudante - by LucasF - 24.09.2013, 00:11
Re: Ajudante - by Juniiro3 - 24.09.2013, 00:13
Re: Ajudante - by leonardoaparecido - 24.09.2013, 00:21
Re: Ajudante - by Juniiro3 - 24.09.2013, 00:23
Re: Ajudante - by smiiir - 24.09.2013, 00:37
Respuesta: Ajudante - by leonardoaparecido - 24.09.2013, 00:53

Forum Jump:


Users browsing this thread: 1 Guest(s)