29.02.2012, 17:18
Tipo eu queria coloca tudo em um lugar sу:
Tipo pois quando alguйm digita o comando se tive 2 vips online aparece vбrias pessoas, alguйm me ajuda sу para aprece em 1
exemplo:
Vip Online: Zй
Vip Online: Eduardo
Por favor alguйm me ajuda.
pawn Код:
CMD :vips ( playerid , params [ ] )
{
if ( IsPlayerConnected ( playerid ) )
{
new
pn [ MAX_PLAYER_NAME ] ,
str [ 56 ],
Count = 0
;
for ( new i = 0 ; i < MAX_PLAYERS; i++ )
{
if ( IsPlayerConnected ( i ) )
{
GetPlayerName ( i , pn , sizeof ( pn ) ) ;
if ( pVip [ i ] >= 1 )
{
Count ++ ;
format ( str , sizeof ( str ) , "~~~~~~~~~~~~~~~~ Vips ~~~~~~~~~~~~~~~~~~" , pVip[i] , pn ) ;
SendClientMessage ( playerid , 0x00FF00AA , str ) ;
format ( str , sizeof ( str ) , "* Vips Online Level %d: %s" , pVip[i] , pn ) ;
SendClientMessage ( playerid , -1 , str ) ;
format ( str , sizeof ( str ) , "~~~~~~~~~~~~~~~~ Vips ~~~~~~~~~~~~~~~~~~" , pVip[i] , pn ) ;
SendClientMessage ( playerid , 0x00FF00AA , str ) ;
}
}
}
if ( Count == 0 )
{
SendClientMessage ( playerid , 0x8B1A1AAA , "* Nenhum player VIP Online" ) ;
}
}
return 1;
}
exemplo:
Vip Online: Zй
Vip Online: Eduardo
Por favor alguйm me ajuda.