Raised This Month: $ Target: $400
 0% 

[Solved] Fake Radio Command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-19-2013 , 04:10   Re: [Solved] Fake Radio Command
Reply With Quote #6

Correct way is with TextMsg, not SayText, but you can do as you want.

PHP Code:
// czero\resource\czero_english.txt for real format
// "Game_radio"                    "^2%%s1 (RADIO): %%s2"
// "Game_radio_location"                "^3%%s1^1 @ ^3%%s2^1 (RADIO): %%s3"

{
    
emessage_begin(MSG_ONEgmsgTextMsg, .player=iPlayer)
    
ewrite_byte(PRINT_RADIO// PRINT_RADIO = 5
    
ewrite_string(szId// player index converted to string
    
ewrite_string("^3%%s1^1 @ ^3%%s2^1 (RADIO): %%s3"
    
ewrite_string(szName// %%1 is replaced with this string
    
ewrite_string(szLocation// %%2 is replaced with this string
    
ewrite_string(szMessage// %%3 is replaced with this string
    
emessage_end()

You can make an idea reading following plugin's source : http://forums.alliedmods.net/showthread.php?p=573867


Anyway, if you use amxx1.8.3, i suggest to only use client_print_color native.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
 



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:42.


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