AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   The Specialists coding help (https://forums.alliedmods.net/showthread.php?t=22561)

ng1200 12-30-2005 05:40

The Specialists coding help
 
hi,
i need to know how do i get info from the kill.
my code should:
Check if someone was killed,
if someone was killed,
it'll print to chat and console of all the server: "<name> killed <name> with <weaponname>"
for example:
"ng1200 killed john doe with m4a1"

thanks, ng1200

XxAvalanchexX 12-30-2005 15:03

Code:
public plugin_init() {     register_event("DeathMsg","event_deathmsg","a");  }  public event_deathmsg() {     new killer = read_data(1), victim = read_data(2), headshot = read_data(3), weapon = read_data(4);  }


All times are GMT -4. The time now is 16:02.

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