All pastes #388334 Raw Edit

Stuff

public text v1 · immutable
·published 2007-03-10 00:13 UTC
rendered paste body
function My_Teleporter_TestMoney(player,_Creature,action)

      local money = Player:GetMoney()
      local prix = price[action]
      local cout = money - prix
      if money >= prix then
       Player:SetMoney(cout);
       travelok = 1
       else
       travelok = 0
      end
  return travelok
end

then
 call the function whetre u need it
My_Teleporter_TestMoney(player,_Creature,1);