MoveObject


Započeo Rizzzla, Decembar 08, 2019, 14:42:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Pozdrav ljudi, zadnja 3-4 dana sam poceo programirat samp po prvi put i mogu rec da mi ide jako dobro, trenutno radim posao dilera kopiram ono sto sam zapamtio sa onog starog CH iz 2012., ko je igrao i ko se sjeca zna da kada posadite travu na predvidjeno mjesto za to pojavi se objekt trave (CreateObject 3409) kako samo viri iz zemlje, i nakon sto tajmer odradi svoje trava se poveca (kao narasla je), to je druga faza, i sljedeca faza izraste jos malo- do kraja, i  onda je mozete brat.

Eh sad imam problem, seto sam tajmere za 3 faze, znaci prva kad posadis krene radit tajmer, kad odradi onda ide MoveObject pa povecam Z koordinatu za neki iznos i ona se stvarno poveca i pokrecem sljedeci tajmer, kada on odradi svoje ne odradi se MoveObject, ono sto znam je da se funkcija koja treba da se odradi po zavrsetku tajmera odradi, sve osim MoveObjecta.

Znam po tome sto se na kraju ako igrac ne pobere travu objekat unisti, a polje trave je ponovo moguce zasaditi...

forward Faza1(idplantaze);
public Faza1(idplantaze){
 MoveObject(Plantaza[idplantaze][PlantObjekt], Plantaza[idplantaze][plantX], Plantaza[idplantaze][plantY], Plantaza[idplantaze][plantZ]+0.6 , 0.97);
  SetTimerEx("Faza2", 20000, false, "d", idplantaze);

return 1;
}

forward Faza2(idplantaze);
public Faza2(idplantaze){

 MoveObject(Plantaza[idplantaze][PlantObjekt], Plantaza[idplantaze][plantX], Plantaza[idplantaze][plantY], Plantaza[idplantaze][plantZ]+1.3, 0,97);
 Plantaza[idplantaze][spremna]=1;
 SetTimerEx("Faza3", 20000, false, "d", idplantaze);

return 1;
}

forward Faza3(idplantaze);
public Faza3(idplantaze){
 DestroyObject(Plantaza[idplantaze][PlantObjekt]);
 Plantaza[idplantaze][spremna]=0;
 PlayerInfo[Plantaza[idplantaze][zasadjeno]][pSadnica]-=1;
 Plantaza[idplantaze][zasadjeno]=-1;

return 1;
}

MoveObject(Plantaza[idplantaze][PlantObjekt], Plantaza[idplantaze][plantX], Plantaza[idplantaze][plantY], Plantaza[idplantaze][plantZ]+1.3, 0.97);


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.



Citat: Rizzzla poslato Decembar 08, 2019, 15:11:03 POSLE PODNE
Ha?
Prekopiraj i vidi hoće li raditi..
Nije isto, sitna je izmena


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.


a, kontam, tek sad vidim zarez, hvala puno...

Citat: Rizzzla poslato Decembar 08, 2019, 15:22:48 POSLE PODNE
a, kontam, tek sad vidim zarez, hvala puno...
nnč


Sirah says
Chillin' in Kyoto grand with my man Skrill
Chain smokin' nicotine sayin' fuck a fast deal
We got that white girl so we make those skrill checks
Fuck a white girl, talk ill, neck karate chop her grill, bitch I kill
Born from the center of a storm
All these boys flappin' gums about how they're hard, bitch I'm harder
Martyr to the swag on the corner
Beat your girl with the drums as the bass makes that bitch cum
Bass makes that bitch cum




Laughin' at the world.