hlmod.hu
https://hlmod.hu/

Stock : szMsg Help!
https://hlmod.hu/viewtopic.php?f=9&t=14919
Oldal: 1 / 1

Szerző:  barnamate17 [2014.03.10. 19:07 ]
Hozzászólás témája:  Stock : szMsg Help!

Üdv, valaki segíteni abban hogy ahogy én írtam működne e szóval chatba ékezetesen írná a karaktert így?

Alap
SMA Forráskód: [ Mindet kijelol ]
  1. stock ClientPrintColor( id, String[ ], any:... )
  2. {
  3. new szMsg[ 192 ]
  4. vformat( szMsg, charsmax( szMsg ), String, 3 )
  5.  
  6. replace_all( szMsg, charsmax( szMsg ), "!n", "^1" )
  7. replace_all( szMsg, charsmax( szMsg ), "!t", "^3" )
  8. replace_all( szMsg, charsmax( szMsg ), "!g", "^4" )
  9.  
  10. static msgSayText = 0
  11. static fake_user
  12.  
  13. if( !msgSayText )
  14. {
  15. msgSayText = get_user_msgid( "SayText" )
  16. fake_user = get_maxplayers( ) + 1
  17. }
  18.  
  19. message_begin( id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, _, id )
  20. write_byte( id ? id : fake_user )
  21. write_string( szMsg )
  22. message_end( )
  23. }
  24.  


Én általam szerkesztett:
SMA Forráskód: [ Mindet kijelol ]
  1. stock ClientPrintColor( id, String[ ], any:... )
  2. {
  3. new szMsg[ 192 ]
  4. vformat( szMsg, charsmax( szMsg ), String, 13 )
  5.  
  6. replace_all( szMsg, charsmax( szMsg ), "!n", "^1" )
  7. replace_all( szMsg, charsmax( szMsg ), "!t", "^3" )
  8. replace_all( szMsg, charsmax( szMsg ), "!g", "^4" )
  9. replace_all( szMsg, charsmax( szMsg ), "á", "á")
  10. replace_all( szMsg, charsmax( szMsg ), "é", "Ă©")
  11. replace_all( szMsg, charsmax( szMsg ), "í", "Ă­")
  12. replace_all( szMsg, charsmax( szMsg ), "ó", "Ăł")
  13. replace_all( szMsg, charsmax( szMsg ), "ö", "ö")
  14. replace_all( szMsg, charsmax( szMsg ), "ő", "Ĺ‘")
  15. replace_all( szMsg, charsmax( szMsg ), "ú", "Ăş")
  16. replace_all( szMsg, charsmax( szMsg ), "ü", "ĂĽ")
  17. replace_all( szMsg, charsmax( szMsg ), "ű", "ű")
  18. replace_all( szMsg, charsmax( szMsg ), "Í", "ĂŤ")
  19.  
  20.  
  21. static msgSayText = 0
  22. static fake_user
  23.  
  24. if( !msgSayText )
  25. {
  26. msgSayText = get_user_msgid( "SayText" )
  27. fake_user = get_maxplayers( ) + 1
  28. }
  29.  
  30. message_begin( id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, msgSayText, _, id )
  31. write_byte( id ? id : fake_user )
  32. write_string( szMsg )
  33. message_end( )
  34. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/