Szerző Téma: Script/Return gond  (Megtekintve 589 alkalommal)

[ZzZ]Álmos

  • Vendég
Script/Return gond
« Dátum: 2012. Február 14. - 15:29:46 »
0 Show voters
Sziasztok. Lenne 2 kérdésem tõletek...
1. Ha tegyük fel van egy scriptem. Azt honnan tudom, hogy melyik függvény alá kell.
Tegyük fel van a [pawn]GivePlayerWeapon(playerid,31,1000)[/pawn] azt tudom, hogy a [pawn]public OnPlayerSpawn(playerid)[/pawn] de vannak a komolyann rendszerek. Pl Goto rendszer. Azokat hova kell?
2.Ez a kérdés pedig a [pawn]return 1;[/pawn] és a [pawn]return 0;[/pawn]-ról szól. Mihez igazítsam egy script berakásához pl? Egy hosszú magyarázat kellene :S Megköszönném!

dexi

  • Vendég
Script/Return gond
« Válasz #1 Dátum: 2012. Február 14. - 15:32:33 »
0 Show voters
Mindent oda raksz ahova akarod.. ha te azt akarod hogy mikor CP-be mész akkor adjon például fegyvert akkor a:
 
public OnPlayerEnterCheckpoint(playerid)

...-hoz rakod.
ha parancsra akkor pedig oda rakod.. minden rajtad áll.

[ZzZ]Álmos

  • Vendég
Script/Return gond
« Válasz #2 Dátum: 2012. Február 14. - 15:37:00 »
0 Show voters
Idézetet írta: Fl0rian date=1329229953\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17040\" data-ipsquote-contentclass=\"forums_Topic
Mindent oda raksz ahova akarod.. ha te azt akarod hogy mikor CP-be mész akkor adjon például fegyvert akkor a:
 
public OnPlayerEnterCheckpoint(playerid)

...-hoz rakod.
ha parancsra akkor pedig oda rakod.. minden rajtad áll.
 
És a /goto-t melyik függvényehez?

Script/Return gond
« Válasz #3 Dátum: 2012. Február 14. - 15:39:53 »
0 Show voters
a /goto parancsot ugyan ugy kell megirni mint a többit a public OnPlayerCommandText alá kell :D

[ZzZ]Álmos

  • Vendég
Script/Return gond
« Válasz #4 Dátum: 2012. Február 14. - 15:41:58 »
0 Show voters
Idézetet írta: RAGE date=1329230393\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17040\" data-ipsquote-contentclass=\"forums_Topic
a /goto parancsot ugyan ugy kell megirni mint a többit a public OnPlayerCommandText alá kell :D
 
De attól nem teleportál el egy másik Player ID-hez.. vagy igen?

Script/Return gond
« Válasz #5 Dátum: 2012. Február 14. - 15:53:57 »
0 Show voters
igen igazad van :D de látom nem vagy nagyon jártas ezért mondom hogy minden egyes admin script ben van goto ezért nem kell külön megirni  ;)

[ZzZ]Álmos

  • Vendég
Script/Return gond
« Válasz #6 Dátum: 2012. Február 14. - 15:59:40 »
0 Show voters
Idézetet írta: RAGE date=1329231237\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"17040\" data-ipsquote-contentclass=\"forums_Topic
igen igazad van :D de látom nem vagy nagyon jártas ezért mondom hogy minden egyes admin script ben van goto ezért nem kell külön megirni  ;)
 
Hát értem :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal