Jump to content

AboShanab

Members
  • Posts

    1,348
  • Joined

  • Last visited

Everything posted by AboShanab

  1. اطرحح كلنت هنا !!
  2. Server Side ! addEventHandler("onVehicleDamage", getRootElement(), function () local Vehicle = getVehicleOccupant(source) if Vehicle then local vehicleHealth = getElementHealth ( Vehicle ) -- Your Code end end )
  3. ذذ كود Canter Window ذذ
  4. ي حول الله خلة يجرب طيب ؟ Server Side ! addEventHandler("onPlayerJoin",root, function () spawnPlayer ( source, 3422.7333984375,-3008.86328125, 154.81094360352, 18, idSkin, 0, 0) ---- الحدثيات end ) addEventHandler("onPlayerWested",root, function () spawnPlayer ( source, 3422.7333984375,-3008.86328125, 154.81094360352, 18, idSkin, 0, 0) ----- نفس الأحدثيات؟ end ) -- حبيبي الاول عند دخول الاعب الثاني عند موت الاعب كل شي صحيح باقي تعدل على idSkin خله ايدي الشخصية اللي تبيها للاعب اذا دخل او اذا مات
  5. مشكور على المساعدة+ تم تعديل اسم العنوان + انا اول ما دخلت SpawnPlayer</strong></p>\n<p><strong> عطاني bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) انا عرفت الأحدثيات لكن في اشياء ما فهمتها وذا الي انا سويتو function greetPlayer ( ) function player_Wasted ( ammo, attacker, weapon, bodypart ) bool spawnPlayer ( player thePlayer, x, y, z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) الباقيين ماعليك منهم , إلي بين [ ] هذول اختيارين يعني تبي تحطهم او لا ع كيففكك bool spawnPlayer ( player thePlayer, float x, float y, float z,) ي حبيبي راججع الويكي وتعرف ان كودك غلط !!
  6. اسال راعيه وش دخلني انا ذذ ^^
  7. function outputDrug (var1, var2, var3, var4, var5, var6) guiSetText ( lblCannabis,var1) guiSetText ( lblHeroin,var2) guiSetText ( lblCocaine,var3) guiSetText ( lblLSD,var4) guiSetText ( lblEcstasy,var5) guiSetText ( lblOpium,var6) end addEvent( "outputDrug2", true ) addEventHandler( "outputDrug2", getRootElement(), outputDrug ) الكلنت يطلب هوو
  8. ذا مثل الششرح استخددم حقي افضل !! edit : Server Side ! spawnPlayer ( source, x, y, z) هذا اهم شي تحطه داخل الكود اما الباقي اختياري .. !!
  9. triggerClientEvent (source,"outputDrug2",source, amountCannabis2, amountHeroin2, amountCocaine2, amountLSD2, amountEcstasy2, amountOpium2 )
  10. function getTextQuit() triggerClientEvent(source,"getDrugAmount",source) end addEventHandler("onPlayerQuit",getRootElement(),getTextQuit) addEvent("saveDrugAmount",true) addEventHandler("saveDrugAmount",getRootElement(), function(player,amountCannabisS,amountHeroinS,amountCocaineS,amountLSDS,amountEcstasyS,amountOpiumS) playeraccount = getPlayerAccount(player) if (playeraccount) then setAccountData(playeraccount,"amountCannabis",tonumber(amountCannabisS)) setAccountData(playeraccount,"amountHeroin",tonumber(amountHeroinS)) setAccountData(playeraccount,"amountCocaine",tonumber(amountCocaineS)) setAccountData(playeraccount,"amountLSDS",tonumber(amountLSDS)) setAccountData(playeraccount,"amountEcstasy",tonumber(amountEcstasyS)) setAccountData(playeraccount,"amountOpium",tonumber(amountOpiumS)) end end) function loadDrugAmount() playeraccount = getPlayerAccount(source) if (playeraccount) then amountCannabis2 = getAccountData(playeraccount,"amountCannabis") amountHeroin2 = getAccountData(playeraccount,"amountHeroin") amountCocaine2 = getAccountData(playeraccount,"amountCocaine") amountLSD2 = getAccountData(playeraccount,"amountLSDS") amountEcstasy2 = getAccountData(playeraccount,"amountEcstasy") amountOpium2 = getAccountData(playeraccount,"amountOpium") triggerClientEvent (source,"outputDrug2",source, amountCannabis2, amountHeroin2, amountCocaine2, amountLSD2, amountEcstasy2, amountOpium2 ) end end addEventHandler("onPlayerLogin",getRootElement(),loadDrugAmount)
  11. function getTextQuit() triggerClientEvent(source,"getDrugAmount",source) end addEventHandler("onPlayerQuit",getRootElement(),getTextQuit) addEvent("saveDrugAmount",true) addEventHandler("saveDrugAmount",getRootElement(), function(player,amountCannabisS,amountHeroinS,amountCocaineS,amountLSDS,amountEcstasyS,amountOpiumS) playeraccount = getPlayerAccount(player) if (playeraccount) then setAccountData(playeraccount,"amountCannabis",tonumber(amountCannabisS)) setAccountData(playeraccount,"amountHeroin",tonumber(amountHeroinS)) setAccountData(playeraccount,"amountCocaine",tonumber(amountCocaineS)) setAccountData(playeraccount,"amountLSDS",tonumber(amountLSDS)) setAccountData(playeraccount,"amountEcstasy",tonumber(amountEcstasyS)) setAccountData(playeraccount,"amountOpium",tonumber(amountOpiumS)) end end) function loadDrugAmount() playeraccount = getPlayerAccount(source) if (playeraccount) then amountCannabis2 = getAccountData(playeraccount,"amountCannabis") amountHeroin2 = getAccountData(playeraccount,"amountHeroin") amountCocaine2 = getAccountData(playeraccount,"amountCocaine") amountLSD2 = getAccountData(playeraccount,"amountLSDS") amountEcstasy2 = getAccountData(playeraccount,"amountEcstasy") amountOpium2 = getAccountData(playeraccount,"amountOpium") triggerClientEvent ( "outputDrug2", getRootElement(), amountCannabis2, amountHeroin2, amountCocaine2, amountLSD2, amountEcstasy2, amountOpium2 ) end end addEventHandler("onPlayerLogin",getRootElement(),loadDrugAmount) الغلط عندك في triggerClientEvent
  12. -- Client Side ! addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed, thePed1, thePed2, thePed3 ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) setPedAimTarget ( thePed1, x, y, z ) setPedAimTarget ( thePed2, x, y, z ) setPedAimTarget ( thePed3, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) setPedControlState ( thePed1, "fire", true ) setPedControlState ( thePed2, "fire", true ) setPedControlState ( thePed3, "fire", true ) outputChatBox ( "بدء اطلاق النار", 255, 255, 0, true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed, thePed1, thePed2, thePed3 ) setPedControlState ( thePed, "fire", false ) setPedControlState ( thePed1, "fire", false ) setPedControlState ( thePed2, "fire", false ) setPedControlState ( thePed3, "fire", false ) outputChatBox ( "وقفو اطلاق النار", 255, 255, 0, true ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end end )
  13. Server Side ! addEventHandler("onPlayerJoin",root, function () spawnPlayer ( source, x, y, z, 18, idSkin, 0, 0) end ) addEventHandler("onPlayerWested",root, function () spawnPlayer ( source, x, y, z, 18, idSkin, 0, 0) end )
  14. موووووود رائع ..# يعطيك الف الف عافية ..# واصل بدون فواصل ..
  15. كفو والله .. اداةة رائعةة جدا ..# يعطيك الف الف عافية .. $
×
×
  • Create New...