Jump to content

The gui show upp for all when a player die


villr

Recommended Posts

Posted

What are you trying to say to me or what do you mean?

And so you know the new code dont work

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

CLICK ME * CLICK ME * CLICK ME

I cannot transfer this knowledge into your brain.

READ IT. At least once. I'm begging you..

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Yea now i have read it 2 times

U want me to do what?

Check if it any wrong or what?

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

You red it, and still don't know what to do?

So you didnt read it, or didnt do it carefully.

... (i just removed part of my post, becouse i realized something)

I've already gave you example of debugging, and you didnt say a word about it.

here:

viewtopic.php?f=91&t=28956&start=15#p319855

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

ohh u mean debugline that put out when player die?

I will check if it come any in window about it and if not are coming is it not working or what?

I will try and se in my "private"server

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

yea code is coming and i tryed on an "online"server witch people can enter and when a player die that message come "player have died"And no error messages but it show up for all still beacuse i have not edit the script, only now tested it

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

well, its not my message.. tell me EXACTLY letter-by-letter, what is it saying.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

but omg i will check im not writed full onlly a few thing

I will check it later

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

you ommited most important thing in this message -.-

i can do "omg", not you ^^

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

We have a working code now BUT when a player die it dont show up again but it dont show upp for all

Here is the code

addEventHandler( "onClientPedWasted", getLocalPlayer( ), 
  function( ) 
    if source == getLocalPlayer( ) then -- Wojak forgot about "then" here 
      local name = getPlayerName(source) 
      outputDebugString("player that died: "..name..", local player: "..getPlayerName(getLocalPlayer())) 
      guiSetVisible (spawnmenugrid, true ) 
      guiSetVisible(spawnmenumemo,true) 
      showCursor ( true ) 
      showPlayerHudComponent("radar",false) 
      showChat(false) 
    end 
  end 
) 
  

What is wrong now? :?::?:

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

any messages in debug window?

try to add more debug:

  
if source == getLocalPlayer( ) then -- Wojak forgot about "then" here 
      outputDebugString("ped died") 
      local name = getPlayerName(source) 
      -- rest of code 
  

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

havent check

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

  • 3 weeks later...
Posted

no i dont get anything :(

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted
Maybe you forgot set this script as client-side... Did you?

Nope it is client side

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

Posted

Right now code is

addEventHandler( "onClientPlayerWasted", getLocalPlayer( ), 
  function( ) 
    if source == getLocalPlayer( ) then -- Wojak forgot about "then" here 
      local name = getPlayerName(source) 
         outputDebugString("ped died") 
      outputDebugString("player that died: "..name..", local player: "..getPlayerName(getLocalPlayer())) 
      guiSetVisible (spawnmenugrid, true ) 
      guiSetVisible(spawnmenumemo,true) 
      showCursor ( true ) 
      showPlayerHudComponent("radar",false) 
      showChat(false) 
    end 
  end 
) 

Happy Owner/Leader of SELS:RPG | Cops and Gangsters | TRUE CRIME CITY with a lot of JOBS!

Scripted since summer 2010 :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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