Jump to content

طلب فنكشات سريع


Recommended Posts

-- # Server Side # -- 
  
local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
       bindKey ( p, "tab", "down", Animation ); 
    end 
end 
); 
  
  
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
   bindKey ( source, "tab", "down", Animation ); 
end 
); 
  
  
  
function Animation ( plr ) 
    if isElementWithinMarker ( plr, marker ) then 
        setPedAnimation ( plr, "FOOD", "EAT_Burger" ); 
        setTimer ( function (  plr ) setPedAnimation ( plr, nil, nil ); end, 2500, 1, plr ); 
    end 
end 
  

Link to comment
-- # Server Side # -- 
  
local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
       bindKey ( p, "tab", "down", Animation ); 
    end 
end 
); 
  
  
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
   bindKey ( source, "tab", "down", Animation ); 
end 
); 
  
  
  
function Animation ( plr ) 
    if isElementWithinMarker ( plr, marker ) then 
        setPedAnimation ( plr, "FOOD", "EAT_Burger" ); 
        setTimer ( function (  plr ) setPedAnimation ( plr, nil, nil ); end, 2500, 1, plr ); 
    end 
end 
  

: بحيث يصير الكود كذا ،(freezeLastFrame) "الأرقمنت الثامن "الأخير + (loop) يمديكـ تسويها بدون تآيمر من خلال الأرقمنت الخامس

-- # Server Side # -- 
local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
       bindKey ( p, "tab", "down", Animation ); 
    end 
end 
); 
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
   bindKey ( source, "tab", "down", Animation ); 
end 
); 
  
function Animation ( plr ) 
    if isElementWithinMarker ( plr, marker ) then 
        setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false); 
    end 
end 

Link to comment
جعفر كفووووووو

كمان طلب اخيررر

ابغى مايقدر يضغط تب ويسوي الحركة الا اذاكان معه 200 دولار

اذا معه تصير الحركة مامعة ماتصير الحركة

+بعد مايسوي الحركة ابغى يجية درع

تبيه يسحب؟

Link to comment
جعفر كفووووووو

كمان طلب اخيررر

ابغى مايقدر يضغط تب ويسوي الحركة الا اذاكان معه 200 دولار

اذا معه تصير الحركة مامعة ماتصير الحركة

+بعد مايسوي الحركة ابغى يجية درع

وليه ما تسويه بنفسك؟!!

getPlayerMoney 
takePlayerMoney 
setPedArmor 

Link to comment

طيب هذا الكود

local PlayerMoney = getPlayerMoney(source) 
    if ( PlayerMoney >= 150) then 
    takePlayerMoney(source,150)     

ابغى ماتصير الحركة الابعد دفع الفلوس وين احط الكود الي فوق

هذا الكود الي ابغى اضيف له الكود الي فوق

  
-- # Server Side # -- 
  
local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
  
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
  
       bindKey ( p, "tab", "down", Animation ); 
  
    end 
  
end 
  
); 
  
  
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
  
   bindKey ( source, "tab", "down", Animation ); 
  
end 
  
); 
  
  
  
function Animation ( plr ) 
  
    if isElementWithinMarker ( plr, marker ) then 
  
        setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false); 
  
    end 
  
end 

Link to comment
طيب هذا الكود
local PlayerMoney = getPlayerMoney(source) 
    if ( PlayerMoney >= 150) then 
    takePlayerMoney(source,150)     

ابغى ماتصير الحركة الابعد دفع الفلوس وين احط الكود الي فوق

هذا الكود الي ابغى اضيف له الكود الي فوق

  
-- # Server Side # -- 
  
local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
  
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
  
       bindKey ( p, "tab", "down", Animation ); 
  
    end 
  
end 
  
); 
  
  
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
  
   bindKey ( source, "tab", "down", Animation ); 
  
end 
  
); 
  
  
  
function Animation ( plr ) 
  
    if isElementWithinMarker ( plr, marker ) then 
  
        setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false); 
  
    end 
  
end 

local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0 ); 
  
addEventHandler ( "onResourceStart", resourceRoot, function (  ) 
  for _, p in ipairs( getElementsByType ( "player" ) ) do 
        bindKey ( p, "tab", "down", Animation ); 
      end 
   end 
); 
  
  
  
addEventHandler ( "onPlayerJoin", root, function ( ) 
       bindKey ( source, "tab", "down", Animation ); 
    end  
); 
  
  
  
function Animation ( plr ) 
    if isElementWithinMarker ( plr, marker ) then 
     local PlayerMoney = getPlayerMoney( plr ) 
      if ( PlayerMoney >= 150 ) then 
          takePlayerMoney( plr, 150 )  
          setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false); 
         end 
    end 
end 
Link to comment

لم تتم التجربه

Marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) 
  
function Anim () 
setPedAnimation ( source, "DANCING", "dnce_m_b") 
end 
  
addEventHandler( "onMarkerHit", Marker, 
    function  ( player ) 
        if getElementType ( player ) == "source" then 
       bindKey( player, "tab", "down", Anim) 
        end 
    end) 
  
  
addEventHandler( "onMarkerLeave ", Marker, 
    function  ( player ) 
       unbindKey( player, "tab", "down", Anim) 
    end) 

هريسةةة -_-

بعدين بسالكـ

if getElementType ( player ) == "source" then

على اي اساس انت حطيتها source ??

شوف الويكي وش يقول

An element is a generic class that can represent almost all in-game entities. The built-in element types are:

Player

Ped

Vehicle

Object

Pickup

Marker

Collision shape

Blip

Radar area

Projectile

Team

Server console

GUI widgets:

Button

Checkbox

Combobox

Edit field

Gridlist

Memo

Progress bar

Radio button

Scrollbar

Scrollpane

Static image

Tab panel

Tab

Text label

Window

TXD

DFF

COL

Sound

Material

Texture

Shader

DX font

GUI font

Weapon

لازم انه يتضمن ذول

source مو منهم

if getElementType ( player ) == "source" then

انا نسيت PLAYER

والله

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...