Jump to content

x[ طلب ]x فكشن


Recommended Posts

سلام عليكم انا مسوي مود توزيع فلوس للكل وشغال تمام

لاكن انا ابيه

يوصل للناس الحطا شعار

[Alex]

في اسمها

والمش حاطط م يجي توزيع

Link to comment

كدا يعني؟

addEventHandler ( "onClientGUIClick", resourceRoot, 
    function ( tag ) 
         if string.find(tag,"[Alex]") then 
          if ( source == GUIEditor.button[1] ) then 
          name = getPlayerName(getLocalPlayer()) 
          cantidad = guiGetText(GUIEditor.edit[1]) 
          guiSetText (GUIEditor.edit[1], "" ) 
          triggerServerEvent("SendMoney1",getRootElement(),cantidad,name) 
end 
end) 
  

function Enviar (cantidad, name) 
    for _, p in ipairs(getElementsByType('player')) do 
    givePlayerMoney(p, tonumber(cantidad)) 
    outputChatBox("#ffff00[C.Console]: ******************************", p, 255, 255, 255, true) 
end 
end 
addEvent("SendMoney1", true) 
addEventHandler("SendMoney1", getRootElement(), Enviar) 
      
  

Link to comment
-- Client Side ! 
  
addEventHandler("onClientGUIClick",resourceRoot, 
    function () 
        if source == GUIEditor.button[1] then 
            local t = guiGetText(GUIEditor.edit[1]) 
            if t ~= "" and tonumber(t) then 
                triggerServerEvent("GiveAll",localPlayer,tonumber(t)) 
            else 
                outputChatBox("Error in Number",255,0,0) 
            end 
        end 
    end 
) 
  
-- Server Side ! 
  
  
addEvent("GiveAll",true) 
addEventHandler("GiveAll",root, 
    function (t) 
        for i,p in ipairs(getElementsByType("player")) do 
            local n = getPlayerName(p) 
            if string.find(n,"[Alex]") then 
                givePlayerMoney(p,t) 
                outputChatBox(getPlayerName(source) .. " Has Give You " .. t,p,0,255,0) 
            end 
        end 
    end 
) 

مو مجرب جربه

Edited by Guest
Link to comment
-- Client Side ! 
  
addEventHandler("onClientGUIClick",resourceRoot, 
    function () 
        if source == GUIEditor.button[1] then 
            local t = guiGetText(GUIEditor.edit[1]) 
            if t ~= "" and tonumber(t) then 
                triggerServerEvent("GiveAll",localPlayer,tonumber(t)) 
            else 
                outputChatBox("Error in Number",255,0,0) 
            end 
        end 
    end 
) 
  
-- Server Side ! 
  
  
addEvent("GiveAll",true) 
addEventHandler("GiveAll",root, 
    function (t) 
            for i,p in ipairs(getElementsByType("player")) do 
 if  ( string.find("[Alex]", getPlayerName(p)) ) then                 
 givePlayerMoney(p,t) 
   outputChatBox(getPlayerName(source) .. " Has Give You " .. t,p,0,255,0) 
            end 
        end 
    end 
     
    ) 

Link to comment

معلش

انا نزلت مود

al7lba

العناد عمله

triggerClientEvent( root, 'doOutputMessage', root, getPlayerName( aPlayer ): gsub ( "#%x%x%x%x%x%x", "" )..' has won reward $'.. reward, 255, 255, 0  ) 

بيجي كل شوي في الكيل مسج

le3ba has won 500 $

كدا

انا ابيه في التوب بار

لاكن م لاقي الاكسبورت تبع الكيل مسج

كلنت :

addEvent( 'startGhost', true ) 
addEventHandler( 'startGhost', root, 
    function( aVehicle ) 
        for _, v in ipairs ( getElementsByType ( "vehicle" ) ) do 
            if isElementCollidableWith ( aVehicle, v ) == true then 
                setElementCollidableWith ( aVehicle, v, false ) 
            end 
        end 
    end 
) 
  
addEvent( 'stopGhost', true ) 
addEventHandler( 'stopGhost', getRootElement( ), 
    function( aVehicle ) 
        for _, v in ipairs ( getElementsByType ( "vehicle" ) ) do 
            if isElementCollidableWith ( aVehicle, v ) == false then 
                setElementCollidableWith ( aVehicle, v, true ) 
            end 
        end 
    end 
) 
  
if ( not getElementData( localPlayer, 'x$x' ) ) then 
    setElementData( localPlayer, 'x$x', 0 ) 
end 
  
setElementData( localPlayer, 'MAP6ArH', false ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...