Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:rangai(playerid, params[])
- {
- if(pDB[playerid][JobLeadID] < 1) return OnPlayerCommandText(playerid, "UnknownCommand");
- switch(pDB[playerid][JobLeadID])
- {
- case 1:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Policija'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 2:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Medikai'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 3:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Mechanikai'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 4:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Taxi'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 5:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'ETA-RADIO'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 6:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Furistai'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 9:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Dyleriai'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 10:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Yardies'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 12:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Corleone'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 14:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Aras'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- case 11:
- {
- mysql_query( "SELECT Rangas1,Rangas2,Rangas3,Rangas4,Rangas5,Rangas6,Rangas7 FROM `rangai` WHERE `KokioDarboRangas` = 'Armija'" );
- mysql_store_result( );
- new RANGAS1[ 128 ];
- new RANGAS2[ 128 ];
- new RANGAS3[ 128 ];
- new RANGAS4[ 128 ];
- new RANGAS5[ 128 ];
- new RANGAS6[ 128 ];
- new RANGAS7[ 128 ];
- new KINTMASISRANGAMS[ 1048 ];
- new SAUGOMRANGUS[ 1048 ];
- while( mysql_fetch_row_format( KINTMASISRANGAMS ) )
- {
- sscanf(KINTMASISRANGAMS,"p<|>s[128]s[128]s[128]s[128]s[128]s[128]s[128]",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7 );
- format( SAUGOMRANGUS,2048,"1.%s\n2.%s\n3.%s\n4.%s\n5.%s\n6.%s\n7.%s\n",RANGAS1,RANGAS2,RANGAS3,RANGAS4,RANGAS5,RANGAS6,RANGAS7);
- }
- mysql_free_result( );
- ShowPlayerDialog(playerid,RANGAIDIALOG,DIALOG_STYLE_LIST,"{04BAFF}Rangø valdymas",SAUGOMRANGUS,"Gerai","Iðeiti");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement