Jump to content

تصحيح


.Dr.PrO

Recommended Posts

local id = 13 - 
local ammo = 4000 
 addEventHandler,('onPlayerWasted',attacker,function                   
spwanPlayer(source,812.29241943359,-1100.7707519531,25.786060333252)   
   outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
end  
)   
  
  

Link to comment
  • Moderators

مادري وش تبي تسوي بضبط ولكن بعدل الي شايفه خطأ بل كود

addEventHandler,('onPlayerWasted',root,function (attacker)                 
spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
   outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
end 
)   

Link to comment

؟؟

زدت علي تايمر لخروج

بس ابي بس يخلص تايم يطلعه برا ..

addEventHandler,('onPlayerWasted',root,function (attacker)                 
spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
   outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
end 
)   
  
setTimer,(50000,1)  
   outputChatBox('  تم خروجك من مقبره المقتول [ '..getPlayerName(source).. ' ] ',source,255,255,0,true) 

Link to comment
  • Moderators

غير مجرب ذذ

timeouted = 1220 -- وقت خروجه من المقبره 
  
addEventHandler,('onPlayerWasted',root,function (attacker)                 
    spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
    outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
    setTimer(outAttac,timeouted,1) 
end 
)   
  
function outAttac () 
spawnPlayer (source,0,0,0)   
outputChatBox('  تم خروجك من مقبره المقتول [ '..getPlayerName(source).. ' ] ',source,255,255,0,true) 
end 

Link to comment

؟

timeouted = 1220  
local id = 1 
local ammo = 3131 
  
addEventHandler,('onPlayerWasted',root,function (attacker)                 
    spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
    outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
    setTimer(outAttac,timeouted,1) 
end 
)   
  
function outAttac () 
spawnPlayer (source,0,0,0)   
outputChatBox('  تم خروجك من مقبره المقتول [ '..getPlayerName(source).. ' ] ',source,255,255,0,true) 
if ( id and ammo) then 
        giveWeapon(source,id,ammo) 
end 
  

Link to comment
timeouted = 1220 
local id = 1 
local ammo = 3131 
  
addEventHandler,('onPlayerWasted',root,function (attacker)                 
    spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
    outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
    setTimer(outAttac,timeouted,1) 
end 
)   
  
function outAttac () 
spawnPlayer (source,0,0,0)   
outputChatBox('  تم خروجك من مقبره المقتول [ '..getPlayerName(source).. ' ] ',source,255,255,0,true) 
giveWeapon(source,id,ammo) 
end 
  

كلام ناصر واضح صلح بنفسك لأن عندك غلط أنك ما حطيت إند حقت الفنكشن

انا صلحته من عندي لأني ما أرى ضرورة لجملة الشرطية السابق

Link to comment

جرب ذا

  
--Server Side 
local timeouted = 1220 
local id = 1 
local ammo = 3131 
  
addEventHandler,('onPlayerWasted',root,function (attacker)                 
    spawnPlayer (source,812.29241943359,-1100.7707519531,25.786060333252)   
    outputChatBox('  You Are Wasted [ '..getPlayerName(attacker).. ' ] ',source,255,255,0,true) 
    setTimer(outAttac,timeouted,1,source) 
end 
)   
  
function outAttac(player) 
spawnPlayer (player,0,0,0)   
outputChatBox('  تم خروجك من مقبره المقتول [ '..getPlayerName(player).. ' ] ',player,255,255,0,true) 
giveWeapon(player,id,ammo) 
end 
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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