View Single Post
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 03-22-2017 , 05:11   Re: Laser/TripMine Entity v2.3 (19.07.2008)
Reply With Quote #574

Quote:
Originally Posted by frOOgy View Post
I have one question: How to make when you die, your mines will be removed ?
In public plugin_init() add this
PHP Code:
RegisterHam(Ham_Killed"player""fw_PlayerKilled"); 
Then anywhere in the code add this

PHP Code:
public fw_PlayerKilled(id)
{
    
RemoveAllTripmines(id)

Krtola is offline
Send a message via Skype™ to Krtola