Thread: set lastinv
View Single Post
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 04-05-2009 , 23:19   Re: set lastinv
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
My motive is that in DOD there is not a preset lastinv when you spawn. You have to select a weapon first to activate lastinv, if you know what I mean.
I'm sort of confused here but why can't you send commands to the client?

If you are trying to set the clients lastinv weapon just do something like this when they received their weapons:
PHP Code:
client_cmd(iClient"slot2;lastinv"); // Change slot2 to the number you want as their lastinv. 
If you are trying to remove the clients from using lastinv just block the command until they switch weapons once.

But, if you can do it the way stupok mentioned that would be a lot better (as long as the CBase offsets aren't changing).

Last edited by hlstriker; 04-05-2009 at 23:37.
hlstriker is offline