Forum

> > CS2D > Scripts > Level script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Level script

1 Antwort
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Level script

floria
User Off Offline

Zitieren
Hi, i have a level script, but i wanna to do something like this:

When a player reaches level 2, give the player the powers to use !kickbots, !broadcast and !resetscore

When a player reaches level 3, give the player the powers to use @report

When a player reaches level 4, give the player the powers to use @kill (player), @slap (player -10hp)

When a player reaches level 5, give the player the powers to use @mute (mute a player), @unmute (unmute a player) and @unvote (unvote a player)

When a player reaches level 6, give the player the powers to use @kick (kick a player) and @poke (poke a player -38hp)

When a player reaches level 7, give the player the powers to use @equip (equip a player with a item) and @ban (IP/USGN/NAME of player)

Someone can help me? I only need a test, with the 3 firsts levels only! THANKS!

alt Re: Level script

VaiN
User Off Offline

Zitieren
you'll have to create some sort of definition of which level has access to which commands and check it when they use a command. it's really up to you how you want to do it.

for Rewards I defined all commands within a table and specified which level has access to them, then checked the player's level in the command processor function.

good luck.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht