Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static stock SetPlayerWantedLevel( playerid, broj ) {
- switch( broj ) {
- case 0: {
- SetPlayerColor( playerid, 0xFFFFFF00 );
- }
- case 1: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 2: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 3: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 4: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 5: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 6: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 7: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 8: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 9: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 10: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 11: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 12: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 13: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 14: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 15: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- case 16: {
- GameTextForPlayer( playerid, "~n~~n~~n~~n~~n~~n~~n~~r~Trazeni ste~n~Juri vas ~b~POLICIJA~n~~r~/dosije~n~~y~]]]]]]", 50000000000000, 3 );
- SetPlayerColor( playerid, 0xAA333300 );
- }
- }
- return 1;
- }
- static stock PostaviWanted( playerid, zlocin[], prijavio[], kolicina = 1 )
- {
- if( IsPlayerConnected( playerid ) )
- {
- if( GetFactionType( playerid ) == ORG_TIP_PD ) return 1;
- new string[ 256 ];
- SetPlayerWantedLevel( playerid, PI[ playerid ][ xWanted ]+kolicina);
- PI[ playerid ][ xWanted ] += kolicina;
- if( PI[ playerid ][ xWanted ] > 100 ) {
- SetPlayerWantedLevel( playerid, 100);
- PI[ playerid ][ xWanted ] = 100;
- }
- strmid( ZlocinInfo[ playerid ][ zPrijavio ], prijavio, 0, strlen(prijavio), 255);
- strmid( ZlocinInfo[ playerid ][ zPocinio ], ImeIgraca( playerid ), 0, strlen( ImeIgraca( playerid ) ), 255);
- strmid( ZlocinInfo[ playerid ][ zZlocin ], zlocin, 0, strlen(zlocin), 255);
- SendClientMessageEx( playerid, -1, ""more_red"Pocinili ste zlocin: %s | Prijavio: %s.", zlocin, prijavio );
- SendClientMessageEx( playerid, -1, ""more_red"Trenutni Wanted Level: %d.", PI[ playerid ][ xWanted ] );
- for( new id = 1; id < MAX_ORG; id++) {
- if( OI[ id ][ oTip ] == ORG_TIP_PD ) {
- // format( string, sizeof( string ), ""col_ugblue"Imamo novi prijavljen zlocin od: %s.", prijavio);
- // OrgPoruka( id, -1, string);
- format( string, sizeof( string ), ""col_ugblue"Svim jedinicama,zlocinac:"col_white" %s, "col_ugblue"Zlocin: "col_white"%s [+%d WL-a],"col_ugblue"Prijavio: "col_white"%s", ImeIgraca( playerid ), zlocin, PI[ playerid ][ xWanted ], prijavio);
- OrgPoruka( id, -1, string);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment