Quote:
Originally Posted by Emilioneri
post code
|
PHP Code:
public skill(id)
{
if(PlayerLevel[id] == 1) // Checks level.
{
give_item(id,"weapon_glock18"); // Give yourself glock18 at level 1
client_cmd (id, "slot2; drop")
}
if(PlayerLevel[id] == 2) // Checks level.
{
give_item(id,"weapon_usp"); // Give yourself usp at level 2
client_cmd (id, "slot2; drop")
}
if(PlayerLevel[id] == 3) // Checks level.
{
give_item(id,"weapon_p228"); // Give yourself p228 at level 3
client_cmd (id, "slot2; drop")
}
if(PlayerLevel[id] == 4) // Checks level.
{
give_item(id,"weapon_fiveseven"); // Give yourself fiveseven at level 4
client_cmd (id, "slot2; drop")
}
if(PlayerLevel[id] == 5) // Checks level.
{
give_item(id,"weapon_tmp"); // Give yourself tmp at level 5
client_cmd (id, "slot1; drop")
}
if(PlayerLevel[id] == 6) // Checks level.
{
give_item(id,"weapon_mp5"); // Give yourself mp5 at level 6
client_cmd (id, "slot1; drop")
}
}