Forum

> > CS2D > Scripts > [Req] Kinda..
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch [Req] Kinda..

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt [Req] Kinda..

asdbanana
User Off Offline

Zitieren
Hello everyone!

So, i was wondering is there a lua/script or can someone make me one that will work like this -

Player (NAME) (RANK) JOINS (TEAM)

So ranks are - Kindral, General, Major etc. and u can earn them by kills. Let's say.. for General you need 320 kills, for Major u need 330 kills or something (shust random numbers from me, but u can choose how many kills and what kind of ranks they are but they must be a war ranks, but please dont but like this - for the lowest rank u need 100 kills and for the highest u need 10000000 kills..that would be boring and it would suck..)

teams - CounterTerrorists team - U.S Army, Terrorists team - T.O.W

All credits do you! Thankyou!

alt Re: [Req] Kinda..

asdbanana
User Off Offline

Zitieren
@user Apache uwu:
It works, only that when i joined Terrorist team it sayd Player (MYNAME) (RANK) JOINS (U.S Army) can you change that if i join terrorist it would say T.O.W and if ct then U.S Army and can you add this function :if i (or anybody) lvl up then it will say PLAYERNAME is now NEWRANK!
Is there a possible way of adding special abilitys when lvling up? (When lvling up from lets say coropoal do general or something you get stuff like stealth armor, speed etc.? Im wery thankful for your work!
3× editiert, zuletzt 08.04.12 02:03:51

alt Re: [Req] Kinda..

Apache uwu
User Off Offline

Zitieren
It's updated-->check my last post.

Also it's very easy to add ranks look at:

1
2
3
4
5
6
7
8
ranks={ --ranks
	["noobie"]=0,
	["Ground Force"]=10,
	["Kindral"]=310,
	["General"]=320,
	["Major"]=330,
	--["Name of Rank"]=Number of Kills--
}

alt Re: [Req] Kinda..

asdbanana
User Off Offline

Zitieren
Thankyou verymutch @user Apache uwu: this helps me lot's
Ohh, and is there a way do give different ranks depending on what team are you in or not? Becose i have U.S Army ranks and CT's are in U.S Army but terrorists are T.O.W (terrorists of world..couldnt think of better name..) but they cant earn same ranks as U.S Army that would be wierd..like, ranks i have are all real U.S Army ranks and they are in correct order, but terrorists cant be Privates and so on!?

Mehr >
2× editiert, zuletzt 08.04.12 02:09:31

alt Re: [Req] Kinda..

Apache uwu
User Off Offline

Zitieren
Try this:

Mehr >


tRanks for terrorist ranks, and ctRanks for counter-terrorist ranks.
1× editiert, zuletzt 08.04.12 02:07:19

alt Re: [Req] Kinda..

asdbanana
User Off Offline

Zitieren
Thankyou! This works nicely! Im stunned by your work! Can you help me learn lua please? If yes then please comment here or send me a message! Ohh, and is there a way of adding special stuff like speed when lvling up? Like, when im Ranked : RPG Launcer owner/user then i get RPG when joining?
2× editiert, zuletzt 08.04.12 02:06:29

alt Re: [Req] Kinda..

Apache uwu
User Off Offline

Zitieren
Click to reveal script.

Mehr >


Look at

1
2
3
4
5
classWpns={ --weapons
	["noobie"]={5,6},
	["Terrorist Ground Force"]={7,8,9},
	--["Name of Rank"]={Weapon1,Weapon2,Weapon3}--
}

and also change the class tables.

alt Re: [Req] Kinda..

Apache uwu
User Off Offline

Zitieren
thread cs2d Weapon id's

So if you want the noobie to get a AUG and a M4 on spawn you would type

1
2
3
4
classWpns={ --weapons
     ["noobie"]={33,32},
     --["Name of Rank"]={Weapon1,Weapon2,Weapon3}--
}

alt Re: [Req] Kinda..

asdbanana
User Off Offline

Zitieren
@user Apache uwu:

Umm..the weapons didn't work so i changed the classWpns do tRanks and then it sent me error, so i changed it back and it didnt give me errors but i dont have any weapons.. this is my server.lua file
Mehr >


Is there an error or something in my .lua file? If yes then can you fix it or teach me how do fix it !? Thankyou!
3× editiert, zuletzt 08.04.12 12:29:36
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht