14.08.2012, 22:52
Problem:
As i scripted it it has to change the skill level of the player when he reaches 4500 score like instead of wielding 1 handed pistol he wields 2 when he reaches 4500 score so i made it but it always applies at all scores less than 4500 and more than 4500 while it has to be like i said
My Code
My Code is under:
As i scripted it it has to change the skill level of the player when he reaches 4500 score like instead of wielding 1 handed pistol he wields 2 when he reaches 4500 score so i made it but it always applies at all scores less than 4500 and more than 4500 while it has to be like i said
My Code
pawn Код:
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 4499)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 1);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 1);
return 1;
}
if(GetPlayerScore(playerid) >= 4500)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_AK47, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_M4, 2);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SNIPERRIFLE, 2);
return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
return 1;
}
Fast Help Please !