Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:direktoriai( playerid, [] )
- {
- new
- pranesimas[ 60 ] = "Direktoriai:" ,
- vardas[ 25 ] ,
- darboid
- ;
- for( new i = 0; i <MAX_PLAYERS; i++ )
- {
- if( IsPlayerConnected( i ) && GetPVarInt( i, "DR" ) > 0 )
- {
- new
- darboid = GetPVarInt( i, "DR" ) ;
- GetPlayerName( i, vardas, 25 ) ;
- if( darboid == 6 ) id = 6 ;
- if( darboid == 9 ) id = 9 ;
- // Kartojam tiek kartu, kiek yra pas jūs darbų.
- if( id == 6 )
- {
- format( pranesimas, 60, "Darbo pavadinimas: %s", vardas ) ;
- }
- if( id == 9 )
- {
- format( pranesimas, 60, "Darbo pavadinimas: %s", vardas ) ;
- }
- //Kokiu būdu siusime žinutę
- //SendClientMessage( playerid, spalvos kodas, pranesimas ) ;
- //ShowPlayerDialog( playerid, 1, DIALOG_STYLE_MSGBOX, "Direktoriai" , pranesimas , "Uždaryti" , "Uždaryti" ) ;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment