RoMaNd! Posted January 21, 2014 Posted January 21, 2014 السلام عليكم ورحمة الله ابي اكوادد ..... لما تكتب.في الشات ابي سيارة . ابي فلوس . اي سلاب يجيك. الامر .......... والفلوس كل ٥ دقايق
#DRAGON!FIRE Posted January 21, 2014 Posted January 21, 2014 Event: "onPlayerChat" -- Vehicle: table createVehicle warpPedIntoVehicle -- Money: givePlayerMoney setTimer isTimer -- Slap : killPed
Do_De<3 Posted January 25, 2014 Posted January 25, 2014 addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي فلوس') then givePlayerMoney( 100000 ) outputChatBox("[Admin]==> تم اعطائك فلوس بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') then killPed (source) outputChatBox("[Admin]==> تم اعطائك سلآب بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سيارة') then local x,y,z = getElementPosition ( source ) local enksar = createVehicle( 411,x, y, z) warpPedIntoVehicle ( source, enksar ) outputChatBox("[Admin]==> تم اعطائك سيارة بنجاح",source,255,0,0,true); end end ) اتمنى افدتك : ) بروب : )
EH10 Posted January 25, 2014 Posted January 25, 2014 addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي فلوس') then givePlayerMoney( 100000 ) outputChatBox("[Admin]==> تم اعطائك فلوس بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') then killPed (source) outputChatBox("[Admin]==> تم اعطائك سلآب بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سيارة') then local x,y,z = getElementPosition ( source ) local enksar = createVehicle( 411,x, y, z) warpPedIntoVehicle ( source, enksar ) outputChatBox("[Admin]==> تم اعطائك سيارة بنجاح",source,255,0,0,true); end end ) اتمنى افدتك : ) بروب : ) لازم جدول للسياره
al-Kobra Posted January 25, 2014 Posted January 25, 2014 addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي فلوس') then givePlayerMoney( 100000 ) outputChatBox("[Admin]==> تم اعطائك فلوس بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') then killPed (source) outputChatBox("[Admin]==> تم اعطائك سلآب بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سيارة') then local x,y,z = getElementPosition ( source ) local enksar = createVehicle( 411,x, y, z) warpPedIntoVehicle ( source, enksar ) outputChatBox("[Admin]==> تم اعطائك سيارة بنجاح",source,255,0,0,true); end end ) اتمنى افدتك : ) بروب : ) كذا يصير : ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي فلوس') then givePlayerMoney( 100000 ) outputChatBox("[Admin]==> تم اعطائك فلوس بنجاح",source,255,0,0,true); end end ) addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سلاب') then killPed (source) outputChatBox("[Admin]==> تم اعطائك سلآب بنجاح",source,255,0,0,true); end end ) vh = {} addEventHandler('onPlayerChat',root, function(msg) if string.find(msg,'ابي سيارة') then local x,y,z = getElementPosition ( source ) vh[source] = createVehicle( 411,x, y, z) warpPedIntoVehicle ( source, vh[source] ) outputChatBox("[Admin]==> تم اعطائك سيارة بنجاح",source,255,0,0,true); end end )
فاّرس Posted January 25, 2014 Posted January 25, 2014 (edited) givePlayerMoney ناقص ارقومنت في السيرفر Edited January 25, 2014 by Guest
Sfa7 Posted January 25, 2014 Posted January 25, 2014 الجدول ما منه فايدة في كودك :!) كيف ماله فايده ؟؟ الجدول ماشوف فيه خطا
Do_De<3 Posted January 25, 2014 Posted January 25, 2014 local enksar = { } addEventHandler( "onPlayerChat", root, function ( msg ) if ( msg and msg == "ابي فلوس" ) then givePlayerMoney( source, 100000 ) elseif ( msg and msg == "ابي سلاب" ) then killPed ( source ) elseif ( msg and msg == "ابي سيارة" ) then if( isElement ( enksar[ source ] ) ) then destoryEelement( enksar[ source ] ) end local x, y, z = getElementPosition ( source ) local enksar[ source ] = createVehicle( 411, x, y, z) warpPedIntoVehicle ( source, enksar[ source ] ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if( isElement ( enksar[ source ] ) ) then destroyElement( enksar[ source ] ) end end ) جرب كذآ يآحلو : )
#DRAGON!FIRE Posted January 25, 2014 Posted January 25, 2014 local enksar = { } addEventHandler( "onPlayerChat", root, function ( msg ) if ( msg and msg == "ابي فلوس" ) then givePlayerMoney( source, 100000 ) elseif ( msg and msg == "ابي سلاب" ) then killPed ( source ) elseif ( msg and msg == "ابي سيارة" ) then if( isElement ( enksar[ source ] ) ) then destoryEelement( enksar[ source ] ) end local x, y, z = getElementPosition ( source ) local enksar[ source ] = createVehicle( 411, x, y, z) warpPedIntoVehicle ( source, enksar[ source ] ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if( isElement ( enksar[ source ] ) ) then destroyElement( enksar[ source ] ) end end ) جرب كذآ يآحلو : ) غلط .. local enksar = { } addEventHandler( "onPlayerChat", root, function ( msg ) if ( msg and msg == "ابي فلوس" ) then givePlayerMoney( source, 100000 ) elseif ( msg and msg == "ابي سلاب" ) then killPed ( source ) elseif ( msg and msg == "ابي سيارة" ) then if( isElement ( enksar[ source ] ) ) then destroyElement( enksar[ source ] ) end local x, y, z = getElementPosition ( source ) local enksar[ source ] = createVehicle( 411, x, y, z) warpPedIntoVehicle ( source, enksar[ source ] ) end end ) addEventHandler( "onVehicleExplode", root, function( ) setTimer( destroyElement, 2000, 1, source ) end ) addEventHandler( "onPlayerQuit", root, function( ) if( isElement ( enksar[ source ] ) ) then destroyElement( enksar[ source ] ) end end )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now