AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Host_Error: WriteDest_Parm: not a client (https://forums.alliedmods.net/showthread.php?t=17177)

DahVid 08-26-2005 22:47

Host_Error: WriteDest_Parm: not a client
 
Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() {     register_plugin("Hit notifications","0.1","DahVid")     register_event("Damage", "got_hit", "b", "2!0")     register_cvar("hn_redflash","1")     register_cvar("hn_shake","1") } public got_hit(id) {     if(is_user_alive(id) && is_user_connected(id)) {         if(get_cvar_num("hn_redflash")) {             message_begin(MSG_ONE,get_user_msgid("ScreenFade"))             write_short(1)             write_short(1)             write_short(1)             write_byte(255)             write_byte(0)             write_byte(0)             write_byte(80)             message_end()         }         if(get_cvar_num("hn_shake")) {             message_begin(MSG_ONE,get_user_msgid("ScreenShake"))             write_short(10)             write_short(10)             write_short(10)             message_end()         }     } }

XxAvalanchexX 08-26-2005 22:49

You send it to MSG_ONE but don't specify the one player to send it to.

Code:
message_begin(MSG_ONE,message,{0,0,0},player);


All times are GMT -4. The time now is 14:24.

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