12.10.2010, 13:55
(
Последний раз редактировалось RenisiL; 12.10.2010 в 17:42.
)
hey, i made private admin chat, but does not work
stock:
What is the problem?
stock:
Код:
AdminZinute( playerid, Spalva, string[] ) { foreach(Player, i) // Optimizuoti negalima { if( PlayerData[ playerid ][ AdminLevel ] !=3 ) { SendClientMessage( i, Spalva, string ); } } return true; }
Код:
public OnPlayerText( playerid, text[] ) { if( strcmp( "!" ,text[ 0 ], true, 1 ) == 0 ) { if( PlayerData[ playerid ][ AdminLevel ] != 3 ) { new Zinute[ 128 ], string[ 20 ]; CreateNameVariable( playerid, MAX_PLAYER_NAME, "Vardas" ); if( sscanf( text, "s[128]" ,Zinute ) ) return SendUsageText( playerid, " ! [Tavo Ћinutė] " ); format ( string, sizeof( string ), "[%s]: %s" ,Vardas, Zinute[ 1 ] ); AdminZinute( playerid, COLOR_MELYNA, string ); } else { SendInfoText( playerid, " ADMIN Chatu naudotis gali tik ADMIN nariai" ); } return true; } return true; }