Raised This Month: $ Target: $400
 0% 

Solved if(!is_user_alive(id))


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shadow728988
Member
Join Date: Sep 2017
Old 05-25-2018 , 01:44   if(!is_user_alive(id))
Reply With Quote #1

Hey, i tried making this plugin that shows a hud message after a player is dead just to him but its not working.
Code:
public hudmsg(id)
{

  if(!is_user_alive(id))
    {
       set_task(1.0, "ShowHud", id) 
    }
}

public ShowHud(id) 
{  
    set_dhudmessage(0, 255, 0, -1.0, -1.0, 0, 2.0, 6.0, 0.8, 0.8)
	show_dhudmessage(id,"Your Text here")
     
}
thank you for your help

Last edited by shadow728988; 05-26-2018 at 23:59. Reason: oops
shadow728988 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode