Level System
#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


Messages In This Thread
Level System - by Garc1a - 24.07.2010, 14:10
Re: Level System - by bartje01 - 24.07.2010, 14:39
Re: Level System - by Garc1a - 24.07.2010, 14:45
Re: Level System - by bartje01 - 24.07.2010, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)