Jump to content

onPlayerWasted help


Mike269

Recommended Posts

Posted
function onPlayerWasted ( test ) 
         outputChatBox ( "FF0000You gonna die",getRootElement(),255,255,255, true )end 
          
         end 
end 
addEventHandler ( "onPlayerWasted", outputChatBox ( "FF0000You gonna die",getRootElement(),255,255,255, true ) 
  
end ) 
  

Can anyone tell me whats wrong here? thanks

Posted

you Can't detect if player gonna die ,

and what do you want to do ?

if you want if he typed command 'kill' and kill himself then

Event : 'onPlayerCommand 
  
killPed 
 

 

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
function onPlayerWasted ( test ) 
         outputChatBox ( "FF0000You gonna die", source,255,255,255, true ) 
end 
addEventHandler ( "onPlayerWasted", root, onPlayerWasted ) 
  

and what is ( test ) ?

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

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