SHARE
TWEET

Untitled

a guest Feb 18th, 2020 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if( strcmp( item, "pizza", true) == 0)
  2.         {
  3.             if( sscanf( params, "s[32]d", item, kolicina ) ) return SendUsageMessage( playerid, "/ubaci pizza [kolicina]");
  4.  
  5.             if( !IsPlayerInRangeOfPoint( playerid, 3.0, -14.8936,-85.8825,1003.5469 ) ) return SendErrorMessage( playerid, "Da biste koristili ovu komandu morate biti do standa sa picama." );
  6.             if( kolicina > 500 ) return SendErrorMessage( playerid, "Mozete staviti najvise 500 ovih stavki u korpu.");
  7.             if(UzeoIzMarketa[playerid][0] >= 500) return SendErrorMessage( playerid, "Vec imate 500 pizza u korpi.");
  8.            
  9.             UkupnaCena[ playerid ] += kolicina*100;
  10.             format( globalstring, sizeof( globalstring ), "* %s levom rukom ubacuje %d pica u korpu za kupovinu.", RPImeIgraca( playerid ), kolicina );
  11.             PorukaRadius(20.0 , playerid, globalstring, 0xC2A2DAFF );
  12.             UzeoIzMarketa[ playerid ][ 0 ] += kolicina;
  13.            
  14.             if(UzeoIzMarketa[playerid][0] > 500) UzeoIzMarketa[playerid][0] = 500, SendErrorMessage(playerid, "Ne mozete staviti vise od 500 pizza.");
  15.             return(true);
  16.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top