Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Raðymo sistema v1.0
- 2012 / 02 / 16
- estylO
- */
- #include < a_samp >
- #include < sscanf >
- enum zaidejoInformacija
- {
- AdminLevel
- }
- new pData[ MAX_PLAYERS ] [ zaidejoInformacija ];
- main( ) print( " " );
- public OnPlayerText( playerid, text[] )
- {
- if( strlen( text ) > 100 )
- return SendClientMessage( playerid, -1, "* Tekstas yra per ilgas");
- if( pData[ playerid ] [ AdminLevel ] == 0 )
- {
- new kint[ 100 ];
- format( kint, 100, "[ {FFACAC}Þ {FFFFFF}] %s : {FF0000}%s", zVardas( playerid ), text );
- SendClientMessageToAll( -1, kint );
- }
- if( pData[ playerid ] [ AdminLevel ] == 1 )
- {
- new kint[ 100 ];
- format( kint, 100, "[ {FFACAC}V ] {FFFFFF}%s : {FF0000}%s", zVardas( playerid ), text );
- SendClientMessageToAll( -1, kint );
- }
- if( pData[ playerid ] [ AdminLevel ] == 2 )
- {
- new kint[ 100 ];
- format( kint, 100, "[ {FFACAC}A ] {FFFFFF}%s : {FF0000}%s", zVardas( playerid ), text );
- SendClientMessageToAll( -1, kint );
- }
- if( pData[ playerid ] [ AdminLevel ] == 3 )
- {
- new kint[ 100 ];
- format( kint, 100, "[ {FFACAC}S ] {FFFFFF}%s : {FF0000}%s", zVardas( playerid ), text );
- SendClientMessageToAll( -1, kint );
- }
- return 0;
- }
- stock zVardas(playerid)
- {
- new ZaidejoVardas[MAX_PLAYER_NAME];
- GetPlayerName(playerid,ZaidejoVardas,MAX_PLAYER_NAME);
- return ZaidejoVardas;
- }
Advertisement
Add Comment
Please, Sign In to add comment