Forum

> > CS2D > Scripts > Class change in chat
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Class change in chat

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Class change in chat

Alistaire
User Off Offline

Zitieren
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.

alt Re: Class change in chat

Tajifun
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht