I have an idea, I am making one Mod
![Smile](images/smilies/smile.gif)
And now i need this:
Quote:
1.I wanna just drop level 0 gun and appear level 1 gun,but I still whant no weapon drop.
2.And I need IMMIDIATLY GIVE new level gun, not wait a round start.!
|
if(PlayerLevel[id]==0)
set_task(0.4,"glock",id)
if(PlayerLevel[id]==1)
set_task(0.4,"usp",id)
public glock(id)
{
give_item(id,"weapon_glock18");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
give_item(id,"ammo_9mm");
}
public usp(id)
{
give_item(id,"weapon_usp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"ammo_45acp");
give_item(id,"weapon_smokegrenade");
}
P.S. This is when you gain level:
if(PlayerXp[id] >= LEVELS[PlayerLevel[id]])
{
PlayerLevel[id] += 1 //level gained
PlayerPoints[id] += 1 //points gained
client_cmd(id, "spk %s", LevelUpSound)
}