-
Sziasztok, nem rég sikerült megcsinálom a fegyverek skilljeit, megcsinálja ha beírok egy paancsot. De ha már azt csinálom meg, hogy ha felcsatalkoznak és úgy állítsa be a skilljeit az már nem mûködik.
Kód:
function fegyverSkill(thePlayer, stat, value, text)
if setPedStat(thePlayer, 69, 999) then
outputChatBox(\"Colt 45 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 70, 999) then
outputChatBox(\"Silenced Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 71, 999) then
outputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 72, 999) then
outputChatBox(\"Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 73, 999) then
outputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 74, 999) then
outputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 75, 999) then
outputChatBox(\"Uzi Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 76, 999) then
outputChatBox(\"MP5 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 77, 999) then
outputChatBox(\"AK 47 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 78, 999) then
outputChatBox(\"M4 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 79, 999) then
outputChatBox(\"Sniper Skillje maximumra feltéve!\", thePlayer)
end
end
addEventHandler(\"onPlayerConnect\", getRootElement(), fegyverSkill)
-
onPlayerConnect-et onPlayerLoginra írd át.
-
Az onPlayerConnect-et írd át OnPlayerJoin-ra vagy OnPlayerLogin-ra.
-
Nem jó egyikkel se :S
E: valhallát használok, amiben nincs beállítva a skill.
-
function fegyverSkill(thePlayer, stat, value, text)
if setPedStat(thePlayer, 69, 999) then
outputChatBox(\"Colt 45 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 70, 999) then
outputChatBox(\"Silenced Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 71, 999) then
outputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 72, 999) then
outputChatBox(\"Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 73, 999) then
outputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 74, 999) then
outputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 75, 999) then
outputChatBox(\"Uzi Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 76, 999) then
outputChatBox(\"MP5 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 77, 999) then
outputChatBox(\"AK 47 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 78, 999) then
outputChatBox(\"M4 Skillje maximumra feltéve!\", thePlayer)
end
if setPedStat(thePlayer, 79, 999) then
outputChatBox(\"Sniper Skillje maximumra feltéve!\", thePlayer)
end
end
addEventHandler(\"accounts:characters:spawn\", getRootElement(), fegyverSkill)
[[ account-system > c_characters.lua ]]
Ide rakd be!
-
olyanom nincs, de a c_account_system-be beraktam úgy me nem jó
-
Ha nincs, akkor nem valhallát használsz, hanem annak már egy módosított változatát..
-
Eduka küldte még régebben, szerintem a shodown mod.
Egyépként ha parancsal csinálom úgy mûködik.
function fegyverSkill(source, stat, value, text)
if setPedStat(source, 69, 999) then
outputChatBox(\"Colt 45 Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 70, 999) then
outputChatBox(\"Silenced Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 71, 999) then
outputChatBox(\"Desert Eagle Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 72, 999) then
outputChatBox(\"Shotgun Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 73, 999) then
outputChatBox(\"Fûrészelt Csövû Shotgun Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 74, 999) then
outputChatBox(\"Spas 12 Shotgun Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 75, 999) then
outputChatBox(\"Uzi Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 76, 999) then
outputChatBox(\"MP5 Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 77, 999) then
outputChatBox(\"AK 47 Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 78, 999) then
outputChatBox(\"M4 Skillje maximumra feltéve!\", source)
end
if setPedStat(source, 79, 999) then
outputChatBox(\"Sniper Skillje maximumra feltéve!\", source)
end
end
addCommandHandler(\"fegyverskill\", fegyverSkill)
E: Találtam egy ilyen részt a s_account_system.lua-ban.
-- Weapon stats
setPedStat(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)
-
Valaki nem tudja mi lehet a gond?
-
Ha van olyan rész, akkor nyilván be is állította a játékosnak a skillt.
De egyébként a setPedStat(ok) alá rakd be:
outputChatBox(\"Skill beállítva!\", 255, 174, 0)
és meglátod mûködik -e.
-
Van olyan rész, de nem mûködik. Nem ír ki semmit.
-
Valaki nem tudja mi lehet a gond?
-
Ha van olyan rész, akkor nyilván be is állította a játékosnak a skillt.
De egyébként a setPedStat(ok) alá rakd be:
outputChatBox(\"Skill beállítva!\", 255, 174, 0)
és meglátod mûködik -e.
-
Van olyan rész, de nem mûködik. Nem ír ki semmit.