Raised This Month: $ Target: $400
 0% 

[SOLVED] imessage.sma problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-25-2007 , 03:35   Re: imessage.sma problem
Reply With Quote #1

'id' is not used anywhere in this plugin. It is not sent from user command or interaction, and is sent globally on a regular basis.

On lines 91 and 93 are where the messages are actually sent. They are sent to client 0, which (since world doesn't care) is replaced by "every client" in the code for those functions.

Simply replace it with a loop...

Code:
for ( new i=1; i <= 32; i++ ) {     // Do your code to test if you want to send to this player or not here     if( i = chosen_one )     {         show_hudmessage(i, "%s", Message);             client_print(i, print_console, "%s", Message);     } }
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Reply



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 11:02.


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