Forum

> > CS2D > Scripts > Level script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Level script

1 reply
To the start Previous 1 Next To the start

old Level script

floria
User Off Offline

Quote
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!

old Re: Level script

VaiN
User Off Offline

Quote
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.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview