Level System
#1

I need someone to help me with a Level System, Where they do /levels, a menu pops up saying: "Level 1, Level 2" etc and when you click on one it tells you what you get for each level.

At level 0 (what you start with) you spawn with a deagle, level 2 you spawn with a deagle and a shotgun.
And to get level 2 you have to have 50 kills.

I have no clue how to do this so I need help.

Much appreciated.
Reply
#2

I'll try to help you a littlebit.

First of all.
ON top of your script:
pawn Код:
new Level[MAX_PLAYERS];
The Level is a variable. You'll need this.

Now lets go to OnPlayerSpawn.
pawn Код:
if(Level[playerid] = 1)
{
GivePlayerWeapon(playerid,weaponmodel,ammo);
}
if(Level[playerid] = 2)
{
GivePlayerWeapon(playerid,weaponmodel,ammo);
}
etc...

This will give you the weapon on each level.

Now:

Top of script
pawn Код:
new Kills[MAX_PLAYERS];
At OnPlayerDeath

[pawn]
Kills[killerid] ++;
if(Kills[killerid] = 50)
{
Level[killerid] = 2;
}


Alright, Not tested yet.
Hope it helped.
Reply
#3

Thanks for that, It looks like it'll work.
I'll test it later and make more levels and expand on it a little bit.
Thanks.
Reply
#4

Np m8.If it doesn't work just post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)