Begin ()
function Begin ( )
local player = getRandomPlayer ()
blip = createBlipAttachedTo ( player, 47 )
setElementData ( player, 'pplayer', true )
outputChatBox ( '* kill '.. getPlayerName ( player ) ..' To Win 50000$', root, 128, 128, 128 )
addEventHandler ( 'onPlayerWasted', root, onWasted )
end
function onWasted ( _,killer )
if killer ~= source and getElementData ( source, 'pplayer' ) == true then
givePlayerMoney ( killer, 50000 )
destroyElement ( blip )
setElementData ( source, 'pplayer', false )
outputChatBox ( '* '..getPlayerName ( killer )..' Killed '..getPlayerName ( source )..' and won 50000$', root, 128, 128, 128 )
removeEventHandler ( 'onPlayerWasted', root, onWasted )
setTimer ( Begin, 60000,1 )
end
end
جرب , واعتذر إذا كان فيه اخطاء لاني سويته عالسريع