[Ajuda] Por favor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Por favor (
/showthread.php?tid=322065)
[Ajuda] Por favor -
[NVC]Eduardo - 29.02.2012
Tipo eu queria coloca tudo em um lugar sу:
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;
}
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.
Re: [Ajuda] Por favor -
Kmatsu - 29.02.2012
Isso que vocк quis dizer?
pawn Код:
CMD :vips ( playerid , params [ ] )
{
if ( IsPlayerConnected ( playerid ) )
{
new
pn [ MAX_PLAYER_NAME ] ,
str [ 56 ],
Count = 0
;
SendClientMessage ( playerid , 0x00FF00AA , "~~~~~~~~~~~~~~~~ Vips ~~~~~~~~~~~~~~~~~~" ) ;
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 Online Level %d: %s" , pVip[i] , pn ) ;
SendClientMessage ( playerid , -1 , str ) ;
}
}
}
if ( Count == 0 )
{
SendClientMessage ( playerid , 0x8B1A1AAA , "* Nenhum player VIP Online" ) ;
}
SendClientMessage ( playerid , 0x00FF00AA , "~~~~~~~~~~~~~~~~ Vips ~~~~~~~~~~~~~~~~~~" ) ;
}
return 1;
}
Re: [Ajuda] Por favor -
[NVC]Eduardo - 29.02.2012
Valeu ajudo Kmatsu.