Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == 3131)
- if(response)
- {
- SPD(playerid, 254, DIALOG_STYLE_INPUT, "Napisi pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Uredu", "");
- }
- if(!response)
- {
- SPD(playerid, 254, DIALOG_STYLE_INPUT, "Napisi pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Pitanje:MORA BITI U VALIDNOM FORMATU I KONKTRETNO", "Uredu", "");
- }
- return 1;
- }
- if(dialogid == 422)
- {
- if(!response) return 1;
- if( response )
- {
- new askQ = -1;
- for( new id = 1; id < MAX_ASKQS; id++ )
- {
- if( adMaskqList[ id ][ askqSend ] == false )
- {
- askQ = id;
- break;
- }
- }
- if( askQ == -1 ) return SCM( playerid, -1, "Vec ima maksimalan broj poslatih pitanja." );
- adMaskqList[ askQ ][ askqSend ] = true;
- adMaskqList[ askQ ][ askqID ] = playerid;
- askqInfo[ playerid ][ askqSended ] = true;
- askqInfo[ playerid ][ askqAnswered ] = false;
- strmid( adMaskqList[ askQ ][ askqOwner ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
- strmid( adMaskqList[ askQ ][ askqQuestion ], inputtext, 0, strlen( inputtext ), 128 );
- SCM( playerid, -1, "Poslao si pitanje administratorima." );
- format( globalstring, sizeof( globalstring ), ""CRVENA"[Pitanje za ADMINA] %s je poslao pitanje.( /lp )", GetName( playerid ) );
- AdminGameMaster ( -1, globalstring );
- }
- return 1;
- }
- if(dialogid == 423)
- {
- if(!response) return 1;
- if( response ) {
- new askQ = -1;
- for( new id = 1; id < MAX_ASKQS; id++ ) {
- if( GMaskqList[ id ][ askqSendA ] == false ) {
- askQ = id;
- break;
- }
- }
- if( askQ == -1 ) return SCM( playerid, -1, "Vec ima maksimalan broj poslatih pitanja." );
- GMaskqList[ askQ ][ askqSendA ] = true;
- GMaskqList[ askQ ][ askqIDA ] = playerid;
- askqInfo[ playerid ][ askqSended ] = true;
- askqInfo[ playerid ][ askqAnswered ] = false;
- strmid( GMaskqList[ askQ ][ askqOwnerA ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
- strmid( GMaskqList[ askQ ][ askqQuestionA ], inputtext, 0, strlen( inputtext ), 128 );
- SCM( playerid, -1, "Poslao si pitanje gamemasterima." );
- format( globalstring, sizeof( globalstring ), ""CRVENA"[Pitanje za GM] %s je poslao pitanje.( /lp )", GetName( playerid ) );
- AdminGameMaster( -1, globalstring );
- }
- return 1;
- }
- if(dialogid == 424)
- {
- if( !response ) return true;
- if( response ) {
- listitem++;
- new string[ 256 ];
- if( adMaskqList[ listitem ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
- IzabraniAskQ[ playerid ] = listitem;
- format( string, sizeof( string ), "Igrac %s je poslao pitanje.\n\nPitanje: %s", adMaskqList[ listitem ][ askqOwner ], adMaskqList[ listitem ][ askqQuestion ] );
- SPD( playerid, 425, DSI, "Pitanje", string, "Odgovori", "Odustani" );
- }
- return 1;
- }
- if(dialogid == 425)
- {
- if( !response ) return true;
- if( response ) {
- new text[ 1280 ],srt1[ 1280 ],srt2[ 1280 ],srt3[ 1280 ];
- if( sscanf( inputtext, "s[128]", text ) ) return 1;
- new askid = IzabraniAskQ[ playerid ];
- if( adMaskqList[ askid ][ askqSend ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
- adMaskqList[ askid ][ askqSend ] = false;
- new id = adMaskqList[ askid ][ askqID ];
- IzabraniAskQ[ playerid ] = -1;
- if( strcmp( GetName( id ), adMaskqList[ askid ][ askqOwner ], true ) == 0 ) {
- askqInfo[ id ][ askqAnswered ] = true;
- strmid( askqInfo[ id ][ askqAdmin ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
- strmid( askqInfo[ id ][ askqAnswer ], text, 0, strlen( text ), 128 );
- format(srt1, sizeof(srt1), ""CRVENA"[BG:RPG] "SIVA"Administrator "CRVENA"%s (ID:%d)"SIVA" je odgovorio na pitanje "CRVENA"(Pitanje ID:%d).", GetName(playerid), playerid,askid);
- SendAdminMessage(-1,srt1);
- format(srt2, sizeof(srt2), ""BELA"Poslali ste odgovor igracu (Pitanje ID:%d).", askid );
- SendClientMessage(playerid, -1,srt2);
- format(srt3, sizeof(srt3), ""BELA"Vas odgovor glasi: %s.", text);
- SendClientMessage(playerid, -1,srt3);
- SendClientMessage( id, -1, "Admin/GameMaster je odgovorio na tvoje pitanje." );
- SendClientMessage( id, -1, "Da pogledate odgovor ukucajte "SIVA"'/pogledajodgovor'." );
- strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
- adMaskqList[ askid ][ askqID ] = -1;
- }
- else {
- if( id != IPI ) {
- askqInfo[ id ][ askqSended ] = false;
- askqInfo[ id ][ askqAnswered ] = false;
- strmid( askqInfo[ id ][ askqAdmin ], "None", 0, strlen( "None" ), 32 );
- strmid( askqInfo[ id ][ askqAnswer ], "None", 0, strlen( "None" ), 128 );
- }
- strmid( adMaskqList[ askid ][ askqOwner ], "None", 0, strlen( "None" ), 32 );
- adMaskqList[ askid ][ askqID ] = -1;
- SCM( playerid, -1, "Taj igrac nije online." );
- return 1;
- }
- }
- return 1;
- }
- if(dialogid == 8372)
- {
- if( !response ) return true;
- if( response ) {
- listitem++;
- new string[ 256 ];
- if( GMaskqList[ listitem ][ askqSendA ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
- IzabraniAskQ[ playerid ] = listitem;
- format( string, sizeof( string ), "Igrac %s je poslao pitanje.\n\nPitanje: %s", GMaskqList[ listitem ][ askqOwnerA ], GMaskqList[ listitem ][ askqQuestionA ] );
- SPD( playerid, 8373, DSI, "Pitanje", string, "Odgovori", "Odustani" );
- }
- return 1;
- }
- if(dialogid == 8372)
- {
- if( !response ) return true;
- if( response ) {
- new text[ 128 ];
- if( sscanf( inputtext, "s[128]", text ) ) return 1;
- new askid = IzabraniAskQ[ playerid ];
- if( GMaskqList[ askid ][ askqSendA ] == false ) return SCM( playerid, -1, "U ovom slotu nema pitanja." );
- GMaskqList[ askid ][ askqSendA ] = false;
- new id = GMaskqList[ askid ][ askqIDA ];
- IzabraniAskQ[ playerid ] = -1;
- if( strcmp( GetName( id ), GMaskqList[ askid ][ askqOwnerA ], true ) == 0 ) {
- askqInfo[ id ][ askqAnswered ] = true;
- strmid( askqInfo[ id ][ askqAdmin ], GetName( playerid ), 0, strlen( GetName( playerid ) ), 32 );
- strmid( askqInfo[ id ][ askqAnswer ], text, 0, strlen( text ), 128 );
- SendClientMessageEx( playerid, -1, "Poslali ste odgovor igracu %s.", GMaskqList[ askid ][ askqOwnerA ] );
- SendClientMessageEx( playerid, -1, "Vas odgovor glasi: %s.", text );
- SendClientMessage( id, -1, "Admin/GM je odgovorio na tvoje pitanje." );
- SendClientMessage( id, -1, "Da pogledate odgovor ukucajte "SIVA"'/pogledajodgovor'." );
- strmid( GMaskqList[ askid ][ askqOwnerA ], "None", 0, strlen( "None" ), 32 );
- GMaskqList[ askid ][ askqIDA ] = -1;
- }
- else {
- if( id != IPI ) {
- askqInfo[ id ][ askqSended ] = false;
- askqInfo[ id ][ askqAnswered ] = false;
- strmid( askqInfo[ id ][ askqAdmin ], "None", 0, strlen( "None" ), 32 );
- strmid( askqInfo[ id ][ askqAnswer ], "None", 0, strlen( "None" ), 128 );
- }
- strmid( GMaskqList[ askid ][ askqOwnerA ], "None", 0, strlen( "None" ), 32 );
- GMaskqList[ askid ][ askqIDA ] = -1;
- SCM( playerid, -1, "Taj igrac nije online." );
- return 1;
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment