Wysłany: 2014-07-03, 22:11
TylkoSiePytam
Pelszini
Wiek: 31 Na forum: 4479 dni Posty: 27
Nick w MP: arwaro
Problemy jest zwi?zany z rangami podam tu kod u do?u opisze problem
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
{
if( strcmp ( nick , "Test" , true )== 0 )
format ( ranga , sizeof ( ranga ), "{FA1E1E}|Head Admin|: %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 ;
}
Nie dzia?a HeadAdmin gdy wpisze nick w ogole go nie czyta oraz jak wchodze na ten nick to jest on z ranga gracz
Wysłany: 2014-07-03, 22:39
IgrexolonO
Wiek: 34 Na forum: 6809 dni Posty: 1386
Piwa : 1062
Kod: public OnPlayerText(playerid, text[])
{
new nick[MAX_PLAYER_NAME+1], message[144];
GetPlayerName(playerid, nick, sizeof(nick));
if(IsPlayerAdmin(playerid))
{
if(strcmp(nick, "Test") == 0)
{
format(message, sizeof(message), "{FA1E1E}|Head Admin|: %s", text);
SendPlayerMessageToAll(-1, message);
return false;
}
SendPlayerMessageToAll(-1, message);
return false;
}
if(strcmp(nick, "brak") == 0)
{
format(message, sizeof(message), "(vip): %s", text);
SendPlayerMessageToAll(-1, message);
return false;
}
format(message, sizeof(message), "|Gracz %d|: %s", playerid, text);
SendPlayerMessageToAll(playerid, message);
return false;
}
Wysłany: 2014-07-04, 02:06
TylkoSiePytam
Pelszini
Wiek: 31 Na forum: 4479 dni Posty: 27
Nick w MP: arwaro
nie da sie pisa? na czacie gdy ustawie vipa a gdy ustawie sobie range head admin to mam range gracz
Pawn public OnPlayerText ( playerid , text [])
{
new nick [ MAX_PLAYER_NAME + 1 ], message [ 144 ];
GetPlayerName ( playerid , nick , sizeof ( nick ));
if( IsPlayerAdmin ( playerid ))
{
if( strcmp ( nick , "Test" ) == 0 )
{
format ( message , sizeof ( message ), "{FA1E1E}|Head Admin|: %s" , text );
SendPlayerMessageToAll (- 1 , message );
return false ;
}
SendPlayerMessageToAll (- 1 , message );
return false ;
}
if( strcmp ( nick , "ss" ) == 0 )
{
format ( message , sizeof ( message ), "(vip): %s" , text );
SendPlayerMessageToAll (- 1 , message );
return false ;
}
Tagi: kłopoty :: rangami
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: