All pastes #2106683 Raw Edit

Something

public text v1 · immutable
#2106683 ·published 2012-01-27 03:21 UTC
rendered paste body
      if Message == "!weapon ion" or Message "!ion" then
      if Purchase_Item(Get_GameObj(pID), 1800) == 1 then
        local pos = Get_Position(Get_GameObj(pID))
           Grant_Powerup(Get_GameObj(pID), "CnC_POW_IonCannonBeacon_Player")
           Grant_Powerup(Get_GameObj(pID), "CnC_POW_Ammo_ClipMax")
       InputConsole("msg [NR]: %s has purchased a 30 second Ion Cannon Beacon.", Get_Player_Name_By_ID(pID))
      else
       InputConsole("ppage %d You Need 1800 credits to buy this.", pID)
     end
  end