عدلو ليي ملف سيرفر
addEvent("onSendMoney", true) addEventHandler("onSendMoney", getRootElement(), function(who, player) local money = getPlayerMoney(source) if tonumber(player) >= 200 then if tonumber(player) <= money then toWho = getPlayerFromName(who) if toWho ~= false then givePlayerMoney(toWho, player) takePlayerMoney(source, player) name = getPlayerName(source) outputChatBox("* You have given money amount of: #00ff00$" .. player .. " #0099ccto: #ff0000" .. who, source, 0, 150, 255, true) outputChatBox("* ".. name .. " #ff0000has given you money amount of: #00ff00$" .. player .. " #ff0000!", toWho, 255, 0, 0, true) else outputChatBox("* Player did not exist !", source, 255, 0, 0) end else outputChatBox("* you dont have enough money !", source, 255, 0, 0) end else outputChatBox("* the Less amount must be #00ff00$200 !", source, 255, 0, 0) end end ) addEvent("gived",true) addEventHandler("gived",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) giveWeapon ( source , 24,700 ) setPedWeaponSlot(source, getSlotFromWeapon(24)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon deagle", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $150 to buy deagle", source, 255, 0, 0, true) end end ) ------------------------------------------------------------------------------------------m4 addEvent("givem4",true) addEventHandler("givem4",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 250) then takePlayerMoney(source,250) giveWeapon ( source , 31,600 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon M4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $250 to buy M4", source, 255, 0, 0, true) end end ) ------------------------------------------------ grande addEvent("givegrn",true) addEventHandler("givegrn",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 50000) then takePlayerMoney(source,50000) giveWeapon ( source , 16,88 ) setPedWeaponSlot(source, getSlotFromWeapon(16)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon Grenade", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $50000 to buy Grenade", source, 255, 0, 0, true) end end ) ------------------------------------------------------------------------------- addEvent("givemk",true) addEventHandler("givemk",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 200) then takePlayerMoney(source,200) giveWeapon ( source , 30,800 ) setPedWeaponSlot(source, getSlotFromWeapon(30)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #ffffff Has Bought weapon AK_47", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $200 to buy AK-47", source, 255, 0, 0, true) end end ) ----------------------------------------------------------------------------------------- addEvent("givemp5",true) addEventHandler("givemp5",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 150) then takePlayerMoney(source,150) giveWeapon ( source , 29,800 ) setPedWeaponSlot(source, getSlotFromWeapon(29)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon MP5", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $150 to buy mp5", source, 255, 0, 0, true) end end ) ---------------------------------------------------------------- addEvent("TEC-9",true) addEventHandler("TEC-9",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 450) then takePlayerMoney(source,450) giveWeapon ( source , 32,800 ) setPedWeaponSlot(source, getSlotFromWeapon(32)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon ...", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $450 to buy TEC-9", source, 255, 0, 0, true) end end ) ----------------------------------------------------------------------------------------------- addEvent("givesnip",true) addEventHandler("givesnip",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 250) then takePlayerMoney(source,250) giveWeapon ( source , 34,999 ) setPedWeaponSlot(source, getSlotFromWeapon(34)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 Has Bought weapon SNIPER", getRootElement(), 255, 0, 0, true )