Wysłany: 2014-07-05, 19:09
TylkoSiePytam
Pelszini
Wiek: 31 Na forum: 4479 dni Posty: 27
Nick w MP: arwaro
Witam
Mam problem kt?ry polegan tym ?e gdy Head Admin napisze co? d?ugie na czacie ?e b?dzie kilka linijek to w 1 linijce tekst jest danego koloru a w dalszych si? zmienia.
ScreenShoot:
Kod:
Pawn
public OnPlayerText ( playerid , text [])
{
new ranga [ 256 ];
new nick [ MAX_PLAYER_NAME ];
GetPlayerName ( playerid , nick , sizeof ( nick ));
if( IsPlayerAdmin ( playerid )) //Tutaj tylko dla admin?w
{
format ( ranga , sizeof ( ranga ), "{FF2400}|Head Admin|: {FF3333}%s" , text );
SendPlayerMessageToAll ( playerid , ranga );
return 0 ;
}
if( strcmp ( nick , "brak" , true )== 0 )
{
format ( ranga , sizeof ( ranga ), "(vip): %s" , text );
}
else if(! IsPlayerAdmin ( playerid ))
{
format ( ranga , sizeof ( ranga ), "|Gracz %d|: %s" , playerid , text );
}
SendPlayerMessageToAll ( playerid , ranga );
return 0 ;
}
Wysłany: 2014-07-05, 20:26
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
Zamien
SendPlayerMessageToAll
na
SendClientMessageToAll
Wysłany: 2014-07-06, 01:28
TylkoSiePytam
Pelszini
Wiek: 31 Na forum: 4479 dni Posty: 27
Nick w MP: arwaro
"Rumun" napisał/a :Zamien
SendPlayerMessageToAll
na
SendClientMessageToAll
er
Bezsensu po co mam zamieni? SenPlayerMessageToAll na SendPlayerMessageToAll
Wysłany: 2014-07-06, 10:55
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
SendClientMessageToAll
Pozdrawiam.Czyta? uwa?nie.
Wysłany: 2014-07-06, 13:13
TylkoSiePytam
Pelszini
Wiek: 31 Na forum: 4479 dni Posty: 27
Nick w MP: arwaro
Wysłany: 2014-07-06, 19:08
Rumun
Wiek: 30 Na forum: 5235 dni Posty: 316
Nick w MP: Rumun
Piwa : 25
To sobie dor?b ,takie trudne ?
Tagi: ranga :: kolorowy :: tekst :: czacie :: drugiej :: linijce :: biały)
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: