24.09.2013, 00:37
pequena base, sу arrumar do seu jeito, й usado a include: a_samp, zcmd, sscanf
Nгo se esqueзa do Plugin 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 ;
}