Facebook
From Bokenzica, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 59
  1. CMD:pranjenovca( playerid, params[] ) {
  2.  
  3.     if( PlayerInfo[ playerid ][ xClan ] < 1)
  4.         return GRESKA( playerid, "Nisi clan nijedne organizacije.");
  5.  
  6.     if( GetFactionType( playerid ) == ORG_TIP_PD || GetFactionType( playerid ) == ORG_TIP_HITM ) {
  7.         return GRESKA( playerid, "Ti si u MUP organizaciji ne mozes ovo da radis!");
  8.  
  9.     if( !IsPlayerInRangeOfPoint( playerid, 3.0, 2600.7976,-1388.3290,36.0960 ) )      
  10.         return GRESKA( playerid, "Niste na mjestu za pranje pljavnog novca!" );
  11.  
  12.     if( PlayerInfo[ playerid ][ xPrljaviNovac ] < 1000 )
  13.         return GRESKA( playerid, "Nemate dovoljno prljavog novca, potrebno min 1000!");
  14.  
  15.     do {
  16.  
  17.         PlayerInfo[ playerid ][ xPrljaviNovac ] -= 1000;
  18.         DajIgracuNovac( playerid, 700 );
  19.  
  20.     } while( PlayerInfo[ playerid ][ xPrljaviNovac ] > 1000 )
  21.  
  22.     return true;
  23. }