Jump to content

تصحيح


.Dr.PrO

Recommended Posts

Posted
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  
)   
  
  

Posted

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

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 
)   

Posted

؟؟

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

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

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) 

Posted

غير مجرب ذذ

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 

Posted

ابي لما اي لاعب يموت

روح الغرفه

بعد 6 دقايق او اقل يطلع

..

ويعطي الاسلحه الي فوق ال هم

local id

local ammo

#

Posted

؟

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 
  

Posted
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 
  

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

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

Posted

جرب ذا

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

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

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