Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Stoyka(playerid)
- if Player[playerid].timer == true then
- local ONEHAND = GetPlayerSkillWeapon(playerid,SKILL_1H);
- local TWOHAND = GetPlayerSkillWeapon(playerid,SKILL_2H);
- local BOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_BOW);
- local CBOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_CBOW);
- if Player[playerid].class == 1 or Player[playerid].class == 6 or Player[playerid].class == 7 then
- SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND-20);
- SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND-20);
- SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON-20);
- SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON-20);
- else
- SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND-30);
- SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND-30);
- SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON-30);
- SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON-30);
- end
- SendPlayerMessage(playerid,255,255,0,"(ИНФО): Ждите 2 секунды!")
- Player[playerid].timer = false
- SetTimerEx("Stoyka2",2000,0,playerid);
- else
- SendPlayerMessage(playerid,255,255,0,"(ИНФО): Еще рано!")
- end
- end
- function Stoyka2(playerid)
- local ONEHAND = GetPlayerSkillWeapon(playerid,SKILL_1H);
- local TWOHAND = GetPlayerSkillWeapon(playerid,SKILL_2H);
- local BOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_BOW);
- local CBOWWEAPON = GetPlayerSkillWeapon(playerid,SKILL_CBOW);
- if Player[playerid].class == 1 or Player[playerid].class == 6 or Player[playerid].class == 7 then
- SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND+20);
- SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND+20);
- SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON+20);
- SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON+20);
- else
- SetPlayerSkillWeapon(playerid,SKILL_1H,ONEHAND+30);
- SetPlayerSkillWeapon(playerid,SKILL_2H,TWOHAND+30);
- SetPlayerSkillWeapon(playerid,SKILL_BOW,BOWWEAPON+30);
- SetPlayerSkillWeapon(playerid,SKILL_CBOW,CBOWWEAPON+30);
- end
- Player[playerid].timer = true
- SendPlayerMessage(playerid,255,255,0,"(ИНФО): Стойка исправлена!")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement