Facebook
From Paltry Tern, 7 Years ago, written in Lua.
This paste is a reply to dorsz from Harmless Tapir - view diff
Embed
Download Paste or View Raw
Hits: 459
  1. nagroda == 2000
  2.  
  3. function ustawianienagrody( playerSource,arg1 )
  4.         if nagroda == 2000 then
  5.         arg1=nagroda
  6.                 outputChatBox ( "Ustawiłeś nagrode wynoszaca " .. nagroda .."$", playerSource )
  7.                  outputDebugString( getPlayerName(playerSource) .. " ustawil nagrode na " .. nagroda .. "$" )
  8.     else
  9.         outputChatBox ( "Niestety ktos juz ustalil juz wczesniej nagrode", playerSource)
  10.                 outputDebugString( getPlayerName(playerSource ) .. " napotkal blad z ustawianiem nagrody" )
  11.         end
  12. end
  13. addCommandHandler ( "ustawnagrode", ustawianienagrody )