Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
Well, I added a bomb script into my script. Now, i want if a player dies because of bomb explosive then it should says
*StoneGold (0) has died from bomb*
How can i script like this? I would be your thankful if you help me. +rep!
Posts: 1,045
Threads: 150
Joined: Oct 2013
Reputation:
0
Just put the code I gave you OnPlayerDeath, and use a string to get the name of the player if(reason == 51) checks the way the player has died, so I made it so it detects if the player died from an explosion.
Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
Don't you think it will be a problem? if i use /nuke or /explode cmd as admin so it doesn't say player has died from bomb? or car explosive?
Posts: 1,045
Threads: 150
Joined: Oct 2013
Reputation:
0
No it will call the reason whenever a player explodes.
Posts: 312
Threads: 83
Joined: Feb 2012
Reputation:
0
Well, I know it will call whatever i put in message. But i m saying. it will send same message even if player died from car explosive not even bomb or admin used /explode a player
Posts: 1,045
Threads: 150
Joined: Oct 2013
Reputation:
0
That's the only way you can check how a player died I believe.