Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- place those codes before chat hook.
- BuildLimit={}; TURRET_LIMIT=5;
- if Message == "!turret" then
- local pos = Get_Position(Get_GameObj(pID))
- if Get_Money(pID) < 1000 then
- InputConsole("ppage %d You need 1000 credits", pID)
- else
- if BuildLimit[pID] == nil then BuildLimit[pID]=0 end
- if BuildLimit[pID] > TURRET_LIMIT then
- InputConsole("ppage %d Turret limit reach.", pID)
- return
- end
- pos.Z = pos.Z + 0
- pos.X = pos.X + 5
- reinf = Create_Object("Nod_Turret_MP_Improved", pos)
- Disable_Physical_Collisions(Get_GameObj(pID))
- if reinf == nil then
- InputConsole("ppage %d Error creating backup / support", pID)
- else
- Set_Money(pID, Get_Money(pID)-1000)
- end
- end
- end
Add Comment
Please, Sign In to add comment