Jump to content

script Race Systém [ Vytváranie & Štartovanie Závodov ]


Angelus

Recommended Posts

Po dlhej dobe Vás opäť zdravím!

 

Chcem Vám predstaviť môj Race Systém - Systém závodov, ktorý som spravil pred niekoľkými mesiacmi a keďže nechávať si ho len tak na okrasu nemalo žiadny osoh, rozhodol som sa Vám ho poskytnúť.

 

Pomocou tohto systému si môžte jednoducho vytvoriť a spustiť vlastný závod, s ľubovoľným autom a ľubovoľnou výhrou.

 

Príkazy:

• /createrace [iD modelu auta v závode][názov závodu]

• /endcreaterace

• /saverace

• /savecp [rádius]

• /saveplace

• /races

• /rhelp

• /joinrace

 

Maximálny počet:

• Závodov: 10

• Checkpointov: 30

• Účastníkov (štartovných pozícií): 15

 

Inštalácia:

 

1. Vložte:

 

RaceOnDialogResponse(playerid, dialogid, response, listitem, inputtext);

Do publicu OnDialogResponse (najlepšie úplne na začiatok)

 

RaceOnPlayerDisconnect(playerid);

Do publicu OnPlayerDisconnect (najlepšie úplne na začiatok)

 

RaceOnPlayerDeath(playerid);

Do publicu OnPlayerDeath (najlepšie úplne na začiatok)

 

RaceOnPlayerExitVehicle(playerid);

Do publicu OnPlayerExitVehicle (najlepšie úplne na začiatok)

 

RaceOnPlayerEnterRaceCP(playerid);

Do publicu OnPlayerEnterRaceCheckpoint (najlepšie úplne na začiatok)

 

RaceOnGameModeInit();

Do publicu OnGamemodeInit

 

2. Vytvorte zložku Races v scriptfiles.

 

3. Ak chceš použiť vlastnú podmienku pre admina na vytvorenie závodu, daj "//" (bez úvodzoviek) na začiatok riadku 63 a uprav riadky: 727, 743, 756, 769, 784, 798, 810.

Ak chceš použiť príkazy cez RCON, nič nemeň.

 

Návod na vytvorenie závodu:

Počas hry zadaním príkazu /rhelp.

 

Download: http://pastebin.com/YDKneZQR

 

S pozdravom Angelus.

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(135) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(136) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(137) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(138) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(139) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(140) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(141) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(152) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(153) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(155) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(164) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(165) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(168) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(169) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(171) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(182) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(192) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(193) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(202) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(205) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(206) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(207) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(208) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(214) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(217) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(225) : error 017: undefined symbol "SetPVarInt"

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

26 Errors.

WTF ?

Link to comment
Share on other sites

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(135) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(136) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(137) : error 017: undefined symbol "SetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(138) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(139) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(140) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(141) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(152) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(153) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(155) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(164) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(165) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(168) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(169) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(171) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(182) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(192) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(193) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(202) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(205) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(206) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(207) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(208) : error 017: undefined symbol "DeletePVar"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(214) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(217) : error 017: undefined symbol "GetPVarInt"

C:\Documents and Settings\Mawerick\Desktop\pawno\trat.pwn(225) : error 017: undefined symbol "SetPVarInt"

 

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

26 Errors.

WTF ?

 

Starý include a_samp, z sa-mp.com si stiahni nový.

 

 

hodnotim -10000000000000000/10

 

Keď sa ti tak nepáči, sprav lepší ;)

Link to comment
Share on other sites

Tak teď fakt nevím vůbec s tou instalací. Vložím do jednotlivých publiců řádky, vytvořím ve scriptfiles složku, a buď mód neví co to je, a když se to pokusím vyřešit, tak buď s chybami nebo to vůbec nejde - pokud to použiji jako filterscript. No, a další věci taky neúčinkují.

Link to comment
Share on other sites

Je to include, keby to bol FS, tak by som k tomu dal príslušný tag (či značku, či ako to mám volať).

Podľa kroku 1 vložíš do módu, samozrejme pod include a_samp zapíšeš #include <tvojnazov> , vytvoríš zložku, skompiluješ a hotovo.

Link to comment
Share on other sites

Jasné, ospravedlňujem sa, príkazy fungujú len ak používate QCMD, prerobil som to na dcmd,

 

pre funkčnosť dajte do public-u OnPlayerCommandText nasledujúce riadky:

dcmd(createrace,10,cmdtext);

dcmd(endcreaterace,13,cmdtext);

dcmd(saverace,8,cmdtext);

dcmd(savecp,6,cmdtext);

dcmd(saveplace,9,cmdtext);

dcmd(races,5,cmdtext);

dcmd(rhelp,5,cmdtext);

dcmd(joinrace,8,cmdtext);

 

Nový download: http://pastebin.com/WQKMDfd4

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

  • 10 months later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...