Raised This Month: $ Target: $400
 0% 

[HELP] How to put color into the .sma plugin?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
popeye10
Senior Member
Join Date: May 2014
Location: Navi Mumbai (India)
Old 12-03-2014 , 00:23   Re: [HELP] How to put color into the .sma plugin?
Reply With Quote #6



PHP Code:
client_print_color(idprint_chat"!g[MFG] !nYour ping can not exceed !t%d"); 
PHP Code:
!green color
!normal color
!team color 
and put this code end of the plugin source code.

PHP Code:
stock client_print_color(idtype, const text[], any:...)
{
 if(
type == print_chat)
 {
  new 
g_iMsgidSayText;
  
g_iMsgidSayText get_user_msgid("SayText");

  new 
szMsg[191], iPlayers[32], iCount 1;
  
vformat(szMsgcharsmax(szMsg), text3);

  
replace_all(szMsgcharsmax(szMsg), "!g","^x04");
  
replace_all(szMsgcharsmax(szMsg), "!n","^x01");
  
replace_all(szMsgcharsmax(szMsg), "!t","^x03");

  if(
id)
   
iPlayers[0] = id;
  else
   
get_players(iPlayersiCount"ch");

  for(new 
iCount i++)
  {
   if(!
is_user_connected(iPlayers[i]))
    continue;
   
   
message_begin(MSG_ONE_UNRELIABLEg_iMsgidSayText_iPlayers[i]);
   
write_byte(iPlayers[i]);
   
write_string(szMsg);
   
message_end();
  }
 }

__________________

Last edited by popeye10; 12-03-2014 at 00:27.
popeye10 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 15:28.


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