View Single Post
  #1  
Old 11-25-2004, 06:06 PM
Crono1508 Crono1508 is offline
*Shadow (Convoy)
Crono1508's Avatar
Join Date: Jun 2004
Location: United States
Posts: 488
Crono1508 will become famous soon enough
Help Scripters!!!

Alright, I'm trying to create an easy flat out levels system off of a RC NPC.
Here is the Script I've made.

//#CLIENTSIDE
if (created){
setstring client.level,1;
}
if (playerkills==10){
setplayerprop#c,Gained Level!;
setstring client.level,#v(strtofloat(#s
(client.level))+1);
say2 You've gained a level!
#bCurrent Level: #s(client.level);
}
}

This doesn't work at all. Even if I always changed the if (playerkills==10){ part.
I've tried
if (playerkills=10){
if (playerkills==10){
if (playerkills<10){
if (playerkills>10){
if (created&&playerkills=10){
if (created&&playerkills==10){

None of it works.
So when I put
if (playerchats&&strequals(#c,/autolevel){
then the basic script, it did give me a level and it showed in my profile Level: 2

I got the profilevars=Level:=client.level

And it just doesn't work.
Am I using the wrong thing?
Like..
severr.flag
server.flag
this.flag
client.flag
clientr.flag

What do I use?
I need all your help out their. I just want it so if my kills are 10 I'll gain a level and it'll add +1 to my client.level!
__________________

Reply With Quote