Jump to content

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


Recommended Posts

local Marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) 
  
addEventHandler( "onMarkerHit", Marker,  
    function animation ( hitElement ) 
        if getElementType ( hitElement ) == "source" then 
            setTimer ( setPedAnimation, 3*1000, 1, hitElement, "DANCING", "اسم الرقصة" ) 
        end 
    end  
) 
  
bindKey ( hitElement, "tab", "down", animation ) 

جربه

Link to comment

local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) 
bindKey ( "tab", "down", 
    function (  ) 
        if isElementWithinMarker( source, marker ) then 
              setAnim (source, "DANCE", "The dance") 
         end 
    end 
) 
  
function setAnim (player, group, anim) 
setPedAnimation(player, group, anim) 
setTimer (setPedAnimation, 5000, 1, player, false) 
end 

بدل

'The dance'

بأسم الرقصه الي تبيها !!

Link to comment
local marker = createMarker(x,y,z, "cylinder", 2, 255, 0, 0) 
bindKey ( "tab", "down", 
    function (  ) 
        if isElementWithinMarker( source, marker ) then 
              setAnim (source, "DANCE", "The dance") 
         end 
    end 
) 
  
function setAnim (player, group, anim) 
setPedAnimation(player, group, anim) 
setTimer (setPedAnimation, 5000, 1, player, false) 
end 

بدل

'The dance'

بأسم الرقصه الي تبيها !!

bindKey ناقص ارقمنت ...

Link to comment

ججرب :

local marker = createMarker(x, y, z, "cylinder", 2, 255, 0, 0) 
  
addEventHandler( "onResourceStart", resourceRoot, function ( )   
  for _,plrs in ipairs( getElementsByType("player") ) do 
       bindKey( plrs, "tab", "Down", Animation) 
     end 
end ) 
  
addEventHandler( "onPlayerJoin", root, function ( ) 
   bindKey( source, "tab", "Down", Animation) 
end ) 
  
  
function setAnim (player, group, anim) 
setPedAnimation(player, group, anim) 
setTimer ( setPedAnimation, 5000, 1, player, false ) 
end 
  
function Animation ( plr ) 
 if isElementWithinMarker( plr, marker ) then 
        setAnim ( plr, "DANCE", "The dance" ) 
      end 
end 
Link to comment
  
  
  
local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) 
  
  
addEventHandler( "onResourceStart", resourceRoot, function ( )   
  
  for _,plrs in ipairs( getElementsByType("player") ) do 
  
       bindKey( plrs, "tab", "Down", EAT_Burger) 
  
     end 
  
end ) 
  
  
  
addEventHandler( "onPlayerJoin", root, function ( ) 
  
   bindKey( source, "tab", "Down", EAT_Burger) 
  
end ) 
  
  
  
  
  
function setAnim (player, group, anim) 
  
setPedAnimation(player, group, anim) 
  
setTimer ( setPedAnimation, 5000, 1, player, false ) 
  
end 
  
  
  
function Animation ( plr ) 
  
 if isElementWithinMarker( plr, marker ) then 
  
        setAnim ( plr, "DANCE", "EAT_Burger" ) 
  
      end 
  
end 

جربت اش الخذا

Edited by Guest
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) 

Link to comment
-- # Server Side # -- 
  
local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) 
  
addEventHandler( "onResourceStart", resourceRoot, function ( ) 
  for _,plrs in ipairs( getElementsByType("player") ) do 
       bindKey( plrs, "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, "DANCE", "EAT_Burger") 
    end 
end 
  

Edited by Guest
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 مو منهم

Link to comment

هذا ملف السيرفر

  
local marker = createMarker(2013.8099365234,1544.779296875,11.310423851013, "cylinder", 2, 255, 0, 0) 
  
  
  
addEventHandler( "onResourceStart", resourceRoot, function ( ) 
  
  for _,plrs in ipairs( getElementsByType("player") ) do 
  
       bindKey( plrs, "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, "DANCE", "EAT_Burger") 
  
    end 
  
end 
  
  

وهذا الميتا

  
        author="ABU-WALEED" 
    name="aaaa" 
    type="script" 
    version="1" 
    /> 
     


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 ( plrs, "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" ); 
    end 
end 
  

Edited by Guest
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...