Jump to content

Ask about This :)


^Dev-PoinT^

Recommended Posts

Posted

Hey i have 13 images and i made This Code is it Right ?

i put Then in data/

local x,y = guiGetScreenSize() 
local image = guiCreateStaticImage ( x/4, y/5.8, 415,67, "images/H"..math.random(1,13)..".png", false ) 
guiSetVisible ( image, false ) 
  
function headshot (ammo, killer, killerweapon, bodypart ) 
if (killer == localPlayer) and (killer ~= source ) then 
    guiSetVisible ( image, true ) 
    guiStaticImageLoadImage(image, "images/H"..math.random(1,13)..".png") 
    setTimer (guiSetVisible, 5000, 1, image, false ) 
    end 
end 
addEventHandler ( "onClientPlayerWasted", getRootElement(), headshot ) 

:D

Posted

pm from Dev-PoinT to me

i make this script, when you write rest the score will back to zero

what is the errors?

function xxx() 
outputChatBox("FormaT Score By^Dev-PoinT v1.0",255,255,0) 
addCommandHandler ( "rest",xxx ) 
setElementData ( killes, deaths 0) 
outputChatBox(..getPlayerName"Has Reset His Score To 0",255,255,0) 
  

:wink:

:lol: Dev Point ask what the errors :lol:

:lol: i think he means what is not errors :lol:

Posted

Wow I'have found 6 errors and you ? :o

  
addCommandHandler("reset", 
function(thePlayer) 
    setElementData(thePlayer, "kills", 0) 
    outputChatBox(getPlayerName(thePlayer).." has reset his stats !", getRootElement(), 255, 255, 255, true) 
end) 
  

Posted

1= F u c k Y o u T a p l

2= if i have send you a Praivte Msg dont show it !

3= i have fix it befour 3 weaks !

4=

outputChatBox("Score_System By Dev-PoinT v1.0",255,255,0) 
outputChatBox("Use/rest to Rest your Score To 0",0,255,0) 
  
function rest(player) 
setElementData(player,"killes",0) 
setElementData(player,"deaths",0) 
setElementData(player,"dmg",0) 
setElementData(player,"Damage",0) 
end 
addCommandHandler("rest", rest) 

Posted

1. DON'T USE THOSE WORDS PLEASE!

2. It's "reset", not "rest". Rest is similar to sleep, bed, zzzzzzz, etc

3. So it works? What is the problem now?

Posted

no thing Benxamix2 but the noon tapl i have send to him a private msg about reset source script

and he is show it to every one to tell them iam noob

but god well take my reveang :D

thx close topic

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

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