Mittag Breadfisher,
ich will auf meinem Server drauf packen das wenn man einen bestimmten Score hat ein bestimmtes Skill Level bei den Waffen bekommt.Aber iwie funkt das ganze nicht richtig.Bitte um Hilfe hier der Ausschnitt:
public wskill(playerid)
{
if(GetPlayerScore(playerid) <= 10 && GetPlayerScore(playerid) >= 10)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,50);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,50);
}
if(GetPlayerScore(playerid) >= 75)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,200);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,200);
}
if(GetPlayerScore(playerid) >= 150)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,250);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,250);
}
if(GetPlayerScore(playerid) >= 200)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,350);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,350);
}
if(GetPlayerScore(playerid) >= 300)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,450);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,450);
}
if(GetPlayerScore(playerid) >= 400)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,500);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,500);
}
if(GetPlayerScore(playerid) >= 500)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,600);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,600);
}
if(GetPlayerScore(playerid) >= 650)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,750);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,750);
}
if(GetPlayerScore(playerid) >= 750)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,850);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,850);
}
if(GetPlayerScore(playerid) >= 1000)
{
SetPlayerSkillLevel(playerid,WEAPONSKILL_SAWNOFF_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MICRO_UZI,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SPAS12_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SHOTGUN,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_DESERT_EAGLE,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL_SILENCED,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_MP5,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_AK47,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_M4,999);
SetPlayerSkillLevel(playerid,WEAPONSKILL_SNIPERRIFLE,999);
}
return 1;
}
Könnte es sein das es daran liegt das ich ein eigenes Public dafür angelegt habe?
mfg. BiGBooN