Szerző Téma: Autómatikus skill beállítás csatlakozásnál hiba.  (Megtekintve 1995 alkalommal)

Autómatikus skill beállítás csatlakozásnál hiba.
« Dátum: 2014. Március 14. - 21:41:11 »
0
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)

Nem elérhető Enigma

  • 391
    • Profil megtekintése
Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #1 Dátum: 2014. Március 15. - 12:49:12 »
0
onPlayerConnect-et onPlayerLoginra írd át.

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #2 Dátum: 2014. Március 15. - 14:49:54 »
0
Az onPlayerConnect-et írd át OnPlayerJoin-ra vagy OnPlayerLogin-ra.

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #3 Dátum: 2014. Március 16. - 10:16:04 »
0
Nem jó egyikkel se :S
E: valhallát használok, amiben nincs beállítva a skill.
« Utoljára szerkesztve: 2014. Március 16. - 10:21:50 írta Campe3r »

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #4 Dátum: 2014. Március 16. - 11:32:39 »
0
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!

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #5 Dátum: 2014. Március 16. - 14:17:31 »
0
olyanom nincs, de a c_account_system-be beraktam úgy me nem jó

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #6 Dátum: 2014. Március 16. - 14:20:12 »
0
Ha nincs, akkor nem valhallát használsz, hanem annak már egy módosított változatát..

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #7 Dátum: 2014. Március 16. - 14:23:31 »
0
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)
« Utoljára szerkesztve: 2014. Március 16. - 14:33:33 írta Campe3r »

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #8 Dátum: 2014. Március 21. - 16:39:24 »
0
Valaki nem tudja mi lehet a gond?

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #9 Dátum: 2014. Március 22. - 16:58:07 »
0
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.

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #10 Dátum: 2014. Március 23. - 21:31:00 »
0
Van olyan rész, de nem mûködik. Nem ír ki semmit.

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #11 Dátum: 2014. Március 21. - 16:39:24 »
0
Valaki nem tudja mi lehet a gond?

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #12 Dátum: 2014. Március 22. - 16:58:07 »
0
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.

Autómatikus skill beállítás csatlakozásnál hiba.
« Válasz #13 Dátum: 2014. Március 23. - 21:31:00 »
0
Van olyan rész, de nem mûködik. Nem ír ki semmit.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal