Forum

> > CS2D > Scripts > Class change in chat
Forums overviewCS2D overview Scripts overviewLog in to reply

English Class change in chat

3 replies
To the start Previous 1 Next To the start

old Class change in chat

Alistaire
User Off Offline

Quote
Hello, I was making a map (Modern Warfare type), and I wanted to make the classes changeable trough chat.

Example:

public Player: Soldier
private You became a Soldier

public Player *DEAD*: Soldier
private You can't change classes while you're dead

public Player: Bomberman
private You became a Bomberman
private Change your weapon by saying /wep1 or /wep2 etc.

Could anyone help me with the script? I'm not familiar with CS2D's Lua.

old Re: Class change in chat

Tajifun
User Off Offline

Quote
You may look in CS2D's samples folder:
"classes.lua"

The only disadvantage is, that this script is using a "menu hook" to change the classes instead of a "say hook".

The basic Structure should look like this:
Spoiler >


Hope this helped.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview