function fegyverSkill(thePlayer, stat, value, text)if setPedStat(thePlayer, 69, 999) thenoutputChatBox(\"Colt 45 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 70, 999) thenoutputChatBox(\"Silenced Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 71, 999) thenoutputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 72, 999) thenoutputChatBox(\"Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 73, 999) thenoutputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 74, 999) thenoutputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 75, 999) thenoutputChatBox(\"Uzi Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 76, 999) thenoutputChatBox(\"MP5 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 77, 999) thenoutputChatBox(\"AK 47 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 78, 999) thenoutputChatBox(\"M4 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 79, 999) thenoutputChatBox(\"Sniper Skillje maximumra feltéve!\", thePlayer)endendaddEventHandler(\"onPlayerConnect\", getRootElement(), fegyverSkill)
function fegyverSkill(thePlayer, stat, value, text)if setPedStat(thePlayer, 69, 999) then outputChatBox(\"Colt 45 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 70, 999) then outputChatBox(\"Silenced Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 71, 999) then outputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 72, 999) then outputChatBox(\"Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 73, 999) then outputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 74, 999) then outputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 75, 999) then outputChatBox(\"Uzi Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 76, 999) then outputChatBox(\"MP5 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 77, 999) then outputChatBox(\"AK 47 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 78, 999) then outputChatBox(\"M4 Skillje maximumra feltéve!\", thePlayer)endif setPedStat(thePlayer, 79, 999) then outputChatBox(\"Sniper Skillje maximumra feltéve!\", thePlayer)endendaddEventHandler(\"accounts:characters:spawn\", getRootElement(), fegyverSkill)
function fegyverSkill(source, stat, value, text)if setPedStat(source, 69, 999) thenoutputChatBox(\"Colt 45 Skillje maximumra feltéve!\", source)endif setPedStat(source, 70, 999) thenoutputChatBox(\"Silenced Skillje maximumra feltéve!\", source)endif setPedStat(source, 71, 999) thenoutputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", source)endif setPedStat(source, 72, 999) thenoutputChatBox(\"Shotgun Skillje maximumra feltéve!\", source)endif setPedStat(source, 73, 999) thenoutputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", source)endif setPedStat(source, 74, 999) thenoutputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", source)endif setPedStat(source, 75, 999) thenoutputChatBox(\"Uzi Skillje maximumra feltéve!\", source)endif setPedStat(source, 76, 999) thenoutputChatBox(\"MP5 Skillje maximumra feltéve!\", source)endif setPedStat(source, 77, 999) thenoutputChatBox(\"AK 47 Skillje maximumra feltéve!\", source)endif setPedStat(source, 78, 999) thenoutputChatBox(\"M4 Skillje maximumra feltéve!\", source)endif setPedStat(source, 79, 999) thenoutputChatBox(\"Sniper Skillje maximumra feltéve!\", source)endendaddCommandHandler(\"fegyverskill\", fegyverSkill)
-- Weapon statssetPedStat(source, 69, 999)setPedStat(source, 70, 999)setPedStat(source, 71, 999)setPedStat(source, 72, 999)setPedStat(source, 73, 999)setPedStat(source, 74, 999)setPedStat(source, 75, 999)setPedStat(source, 76, 999)setPedStat(source, 77, 999)setPedStat(source, 78, 999)setPedStat(source, 79, 999)toggleAllControls(source, true, true, true)setElementFrozen(source, false)
outputChatBox(\"Skill beállítva!\", 255, 174, 0)