Raised This Month: $ Target: $400
 0% 

Looking for a particular message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 02:32   Looking for a particular message
Reply With Quote #1

i have found the message i can use to detect if a target has been bombed but i am looking for the 2 messages to say bomb has been planted and the message for bomb has been defused.

And for those who are looking for in game messages here is a list i have found.

Code:
Game registered user msgs:    msgid   size    VoiceMask                    64      8    ReqState                     65      0    CurWeapon                    66      3    Geiger                       67      1    Flashlight                   68      2    FlashBat                     69      1    Health                       70      1    Damage                       71     12    Battery                      72      2    Train                        73      1    HudTextPro                   74     -1    HudText                      75     -1    SayText                      76     -1    TextMsg                      77     -1    WeaponList                   78     -1    ResetHUD                     79      0    InitHUD                      80      0    ViewMode                     81      0    GameTitle                    82      1    DeathMsg                     83     -1    ScoreAttrib                  84      2    ScoreInfo                    85      9    TeamInfo                     86     -1    TeamScore                    87     -1    GameMode                     88      1    MOTD                         89     -1    ServerName                   90     -1    AmmoPickup                   91      2    WeapPickup                   92      1    ItemPickup                   93     -1    HideWeapon                   94      1    SetFOV                       95      1    ShowMenu                     96     -1    ScreenShake                  97      6    ScreenFade                   98     10    AmmoX                        99      2    SendAudio                   100     -1    RoundTime                   101      2    Money                       102      5    ArmorType                   103      1    BlinkAcct                   104      1    StatusValue                 105     -1    StatusText                  106     -1    StatusIcon                  107     -1    BarTime                     108      2    ReloadSound                 109      2    Crosshair                   110      1    NVGToggle                   111      1    Radar                       112      7    Spectator                   113      2    VGUIMenu                    114     -1    TutorText                   115     -1    TutorLine                   116     -1    TutorState                  117     -1    TutorClose                  118     -1    AllowSpec                   119      1    BombDrop                    120      7    BombPickup                  121      0    ClCorpse                    122     -1    HostagePos                  123      8    HostageK                    124      1    HLTV                        125      2    SpecHealth                  126      1    ForceCam                    127      3    ADStop                      128      0    ReceiveW                    129      1    CZCareer                    130     -1    CZCareerHUD                 131     -1    ShadowIdx                   132      4    TaskTime                    133      4    Scenario                    134     -1    BotVoice                    135      2    BuyClose                    136      0    SpecHealth2                 137      2    BarTime2                    138      4    ItemStatus                  139      1    Location                    140     -1    BotProgress                 141     -1    Brass                       142     -1    Fog                         143      7    ShowTimer                   144      0    HudTextArgs                 145     -1

hope some of you can find use for them regards.....
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-09-2006 , 02:47  
Reply With Quote #2

Code:
register_event("SendAudio", "bomb_event", "b", "2=%!MRAD_BOMBPL", "2=%!MRAD_BOMBDEF"); // Bomb has been defused or planted public bomb_event(id) {     if(!id) // Server id and player id get sent to.. so don't do stuff if server id 0         return;     new param[13]     read_data(2, param, 12)     if(param[11] == 'P')// Planted     {             }     else if(param[11] == 'D')// Defused     {             } }

This is how I did it for uwc3 when I moved event from register_logevent
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
VEN
Veteran Member
Join Date: Jan 2005
Old 03-09-2006 , 02:54  
Reply With Quote #3

Quote:
i have found the message i can use to detect if a target has been bombed
I pretty sure that you found incorrect way. Let me guess is it a center text message?
VEN is offline
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 03:21  
Reply With Quote #4

Quote:
Originally Posted by teame06
Code:
register_event("SendAudio", "bomb_event", "b", "2=%!MRAD_BOMBPL", "2=%!MRAD_BOMBDEF"); // Bomb has been defused or planted public bomb_event(id) {     if(!id) // Server id and player id get sent to.. so don't do stuff if server id 0         return;     new param[13]     read_data(2, param, 12)     if(param[11] == 'P')// Planted     {             }     else if(param[11] == 'D')// Defused     {             } }

This is how I did it for uwc3 when I moved event from register_logevent
that didnt work for me mate sorry any other ideas ?!?
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 03:22  
Reply With Quote #5

Quote:
Originally Posted by VEN
Quote:
i have found the message i can use to detect if a target has been bombed
I pretty sure that you found incorrect way. Let me guess is it a center text message?
yes vex it is mate says the bomb has been planted... or the bomb has been defused
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 04:17  
Reply With Quote #6

Quote:
Originally Posted by VEN
Quote:
i have found the message i can use to detect if a target has been bombed
I pretty sure that you found incorrect way. Let me guess is it a center text message?
opps totalyl missread the message i use to get bomb exploded is

register_event("23", "TargetBombed", "a", "1=17", "6=-105", "7=17")

but as for the planted and by who and the bomb defused i really am not sure....
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-09-2006 , 05:36  
Reply With Quote #7

I thought I fully tested this but it seem like like only the server send out the message.. I wonder what the hell I was on when I was doing all these messaging logging.

This is how war3ft and uwc3 did it

Code:
register_logevent("on_PlayerAction",3,"1=triggered") public on_PlayerAction() {     new sArg[MAX_VAR_LENGTH], sAction[MAX_VAR_LENGTH]     new sName[MAX_NAME_LENGTH]     new iUserId, id     read_logargv(0,sArg,MAX_VAR_LENGTH)     read_logargv(2,sAction,MAX_VAR_LENGTH)     parse_loguser(sArg,sName,MAX_NAME_LENGTH,iUserId)     id = find_player("k", iUserId)     if(!id)         return PLUGIN_CONTINUE     // Bomb planted     if (equal(sAction,"Planted_The_Bomb"))     {         client_print(0, print_chat, "Zomg %s Planted the bomb", sName)             }     else if (equal(sAction,"Defused_The_Bomb"))  // Bomb defused     {         client_print(0, print_chat, "Zomg %s defused the bomb", sName)     } }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 06:17  
Reply With Quote #8

Quote:
Originally Posted by teame06
I thought I fully tested this but it seem like like only the server send out the message.. I wonder what the hell I was on when I was doing all these messaging logging.

This is how war3ft and uwc3 did it

Code:
register_logevent("on_PlayerAction",3,"1=triggered") public on_PlayerAction() {     new sArg[MAX_VAR_LENGTH], sAction[MAX_VAR_LENGTH]     new sName[MAX_NAME_LENGTH]     new iUserId, id     read_logargv(0,sArg,MAX_VAR_LENGTH)     read_logargv(2,sAction,MAX_VAR_LENGTH)     parse_loguser(sArg,sName,MAX_NAME_LENGTH,iUserId)     id = find_player("k", iUserId)     if(!id)         return PLUGIN_CONTINUE     // Bomb planted     if (equal(sAction,"Planted_The_Bomb"))     {         client_print(0, print_chat, "Zomg %s Planted the bomb", sName)             }     else if (equal(sAction,"Defused_The_Bomb"))  // Bomb defused     {         client_print(0, print_chat, "Zomg %s defused the bomb", sName)     } }
dunno what you were on but i would like some please lol thanks for this is worked a treat

karma ++ tbh
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-09-2006 , 06:20  
Reply With Quote #9

Btw .. You only can hit 1 person per day or you start -karma yourself. I +karma you but you still have -1
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
[DumB]Steamsucks
Junior Member
Join Date: Feb 2006
Location: uk
Old 03-09-2006 , 06:30  
Reply With Quote #10

Quote:
Originally Posted by teame06
Btw .. You only can hit 1 person per day or you start -karma yourself. I +karma you but you still have -1
dont even know what it is or what its for but i clicked + next to your name a fiew times i have only been codeing amx a week and allready totally hooked have slept 2 nites since last monday that cant be good.

myabe we need a java++ cause this nescafe and rollups aint cutting all the late nite amx

although you guys here are absoloutly ace and if the docs dont explain it to well or help you guys do...

{ if god did not love you how could you acoumplish amx x }

regards......
__________________
If it works then i wrote it if it erros on less then 50 lines i had help with it if it breaks totally it wasnt me..
[DumB]Steamsucks is offline
Send a message via MSN to [DumB]Steamsucks
Reply


Thread Tools
Display Modes

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 20:15.


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