Jump to content
  • 0

pomoc Duel


Gabik

Dotaz

19 odpovědí na tuto otázku

Recommended Posts

  • 0

duel ne nevies normal duel na takej jak streche ze /dueljoin id zbrane abo nejaky duel kde dam dj abo dueljoin a hram s dakym :d nevim jak to mam uz vysvetlit

Link to comment
Share on other sites

  • 0

Mno, je to celkem jednoduchý, můžeš udělat třeba warp na tu střechu, dostaneš život, vestu a zbraň...... Třeba takhle

 

if (strcmp("/dueljoin zbran", cmdtext, true, 10) == 0) //prikaz

{

SetPlayerPos(playerid,x,y,z);//teleportuje hráče

GivePlayerWeapon(playerid,id zbrane,pocet naboju); //da zbran

SetPlayerArmour(playerid, 100.0); //da vestu

SetPlayerHealth(playerid, 100.0); // da život

return 1;

}

 

 

PS: Můžeš k tomu přidat další funkce, třeba že se hráči odeberou ostatní zbraně atd.

Link to comment
Share on other sites

  • 0

/dueljoin zbran ?? :-D takhle to teda nefunguje kdyžtak už mužeš dcmd...:

 

 

dcmd_dueljoin(kecikeci...)
{
new zbranid = strval(params[0]);
if(!params[0])return SendClientMessage(playerid, COLOR_BLUE, "Syxtance: /weapon [ ID Zbraně ]");
SetPlayerPos(playerid,x,y,z);//teleportuje hráče
GivePlayerWeapon(playerid,zbranid,9999); //da zbran
SetPlayerArmour(playerid, 100.0); //da vestu
SetPlayerHealth(playerid, 100.0); // da život
return 1;
}

pač nwm jak si to myslel :)

Link to comment
Share on other sites

  • 0

To byl jen příklad, místo zbraně si tam dá třeba m4 nebo uzi atd.

 

A myslel jsem to tak, že bude duel třeba s m4 na jedne střeše, to bude /dueljoin m4 , potom třeba /dueljoin uzi , tobude jinde atd. Dal jsem jen příklad, jak se to dá udělam, samodřejmě, že je spoustu jinejch možností.

Link to comment
Share on other sites

  • 0
Guest [*LoNg*]LiFe

new pos;

new id = strval(params), zbran = strval(params[pos]), string[128];

if( zbran < 0 || zbran > 48 ) return SendClientMessage(playerid, COLOR_farba, "[WTF?] ID 0 - 48 !");

GivePlayerWeapon(id, zbran, 999999);

//neviem toto ja poriadne neviem:D dokonca ani v Admin scripte to nemam bo mi to neslo ale tu mas taku pomoc takto by to neako malo fungovat ...

Link to comment
Share on other sites

  • 0
new pos;

new id = strval(params), zbran = strval(params[pos]), string[128];

if( zbran < 0 || zbran > 48 ) return SendClientMessage(playerid, COLOR_farba, "[WTF?] ID 0 - 48 !");

GivePlayerWeapon(id, zbran, 999999);

//neviem toto ja poriadne neviem:D dokonca ani v Admin scripte to nemam bo mi to neslo ale tu mas taku pomoc takto by to neako malo fungovat ...

 

Sry ze jeste prudim:

 

Ale proc tam mas 48 zbraní?? neni jich jen 46?? :wtf: a naboju 9999 :wtf:

Link to comment
Share on other sites

  • 0
Nemyslis nahodou toto

 

qhNF.jpg

 

?

Bylo by dobré, když tento FS takto veřejně rozposíláš, abys uvedl i autora toho kodu. Je to totiž komplet vytaženo ze Smrtakova LV-DM,MG,LG modu.

 

Díky za pochopení.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...