Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM Plugin] CheckPlayerName
Re: [SSGM Plugin] InvalidChars [message #489011 is a reply to message #489010] Thu, 14 August 2014 05:18 Go to previous messageGo to previous message
Neijwiert is currently offline  Neijwiert
Messages: 124
Registered: October 2009
Karma:
Recruit
iRANian wrote on Thu, 14 August 2014 00:26

Instead of using Console_Input PAMSG you can use Send_Client_Text. It uses less resources on the server.


If you don't know how to do that:
Send_Client_Text(L"insert bullshit here", TEXT_MESSAGE_PRIVATE, true, -1, ClientReceiverID, true, true);

Not tested but it should look like that sort of.

Also when you use a certain function that iterates over a list ('Find_Player') then I advise you to store that result in a variable. Since you use it like a few times in a row on the same ID in the same function. It gets rid of unnecessary iterations.

[Updated on: Thu, 14 August 2014 05:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [SSGM Plugin] Command
Next Topic: [SSGM 4.0 Plugn] Kill Harvester Console Commands
Goto Forum:
  


Current Time: Sat Jun 08 11:24:24 MST 2024

Total time taken to generate the page: 0.00724 seconds