24.07.2010, 14:39
I'll try to help you a littlebit.
First of all.
ON top of your script:
The Level is a variable. You'll need this.
Now lets go to OnPlayerSpawn.
etc...
This will give you the weapon on each level.
Now:
Top of script
At OnPlayerDeath
[pawn]
Kills[killerid] ++;
if(Kills[killerid] = 50)
{
Level[killerid] = 2;
}
Alright, Not tested yet.
Hope it helped.
First of all.
ON top of your script:
pawn Код:
new Level[MAX_PLAYERS];
Now lets go to OnPlayerSpawn.
pawn Код:
if(Level[playerid] = 1)
{
GivePlayerWeapon(playerid,weaponmodel,ammo);
}
if(Level[playerid] = 2)
{
GivePlayerWeapon(playerid,weaponmodel,ammo);
}
This will give you the weapon on each level.
Now:
Top of script
pawn Код:
new Kills[MAX_PLAYERS];
[pawn]
Kills[killerid] ++;
if(Kills[killerid] = 50)
{
Level[killerid] = 2;
}
Alright, Not tested yet.
Hope it helped.