بدي اول ماضغط علي الزر ينقل اللاعب مكان وياخذ منه فلوس شوفو الكود ذا
--client ذا لسحب الفلوس حق الانتقال سهل
function takeCash
if(source == GUIEditor.button[4]) then
bool takePlayerMoney ( int 150000 )
end)
addCommandHandler ( "takeCash", takeCash )
-- server
function takeCash ( thePlayer, command, 150000 ) -- when the takecash command is called
takePlayerMoney ( thePlayer, tonumber(150000) ) -- take the amount of money from the player
end
addCommandHandler ( "takeCash", takeCash )