Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » k wtf commands half way work now??
k wtf commands half way work now?? [message #468826] Sat, 09 June 2012 12:53 Go to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

So I put all my commands into the new source and put the updated scripts.dll in my server loaded it up to test, and it works half way.

When you do !bind it give's you the message like it should, but it doesn't show that you typed !bind???

Am I missing something here?

bool SSGMGameManager::ChatHook(int PlayerID,TextMessageEnum Type,const wchar_t *Message,int recieverID)
{
		if (VehicleOwnership)
		{
			GameObject *obj = Get_GameObj(PlayerID);
			if (wcsistr(Message,L"!bind") == Message)
			{
				Bind_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!lock") == Message)
			{
				Lock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!bl") == Message)
			{
				Bind_Vehicle(obj);
				Lock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!unbind") == Message)
			{
				Unbind_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!unlock") == Message)
			{
				Unlock_Vehicle(obj);
				return false;
			}
			if (wcsistr(Message,L"!vkick") == Message)
			{
				Kick_Vehicle_Driver(obj);
				return false;
			}
			if (wcsistr(Message,L"!c4") == Message)
			{
				GameObject *Player = Get_GameObj(PlayerID);
				Print_C4(Player);
				return false;
			}
			if (wcsistr(Message,L"!irc") == Message) 
			{
				Console_Input("msg The DSGaming IRC is located @ irc.dsgaming.us");
				return false;
			}
			if (wcsistr(Message,L"!ts") == Message) 
			{
				Console_Input("msg The DSGaming TeamSpeak is located @ dsts.us:3369");
				return false;
			}
			if (wcsistr(Message,L"!website") == Message)
			{
				Console_Input("msg The DSGaming IRC is located @ dsgaming.us");
				return false;
			}


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need some help with 3ds
Next Topic: memtracker message
Goto Forum:
  


Current Time: Wed Dec 18 12:17:00 MST 2024

Total time taken to generate the page: 0.00878 seconds