Mischino19 2 Odesláno: 14. Září, 2010 Share Odesláno: 14. Září, 2010 cfte mam DM zonu a chcem spravit ze ked v tej DM skape tak sa nespawne na zaciatok celeho modu ale v tej DM zone... thx Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 14. Září, 2010 Share Odesláno: 14. Září, 2010 new bool:lamakjenadm[MAX_PLAYERS]; tam kde ho to portne do DM: lamakjenadm[playerid] = TRUE; OnPlayerSpawn if(lamakjenadm[playerid] == TRUE) return SetPlayerPos Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 14. Září, 2010 Author Share Odesláno: 14. Září, 2010 thx nenapadlo ma to cez podmienku ... pocuj ale ked mam cca 10 DM zon tak to by som musel zvlast podmienky robit a to je este vecia zataz na mod... Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 thx nenapadlo ma to cez podmienku ... pocuj ale ked mam cca 10 DM zon tak to by som musel zvlast podmienky robit a to je este vecia zataz na mod... Ale prdy. new DM[MAX_PLAYERS]; #define BEZZONY 0 #define ZONA1 1 #define ZONA2 2 do connectu: DM[player] = 0; Zona 1 DM[p] = ZONA1; Zona 2 DM[p] = ZONA2; if(DM[playerid] == BEZZONY) return SetPlayerPos if(DM[playerid] == ZONA1) return SetPlayerPos if(DM[playerid] == ZONA2) return SetPlayerPos Link to comment Share on other sites More sharing options...
0 NurofeN-Cz 0 Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 new DMZONICKYXD[MAX_PLAYERS] OnPlayerSpawn if(gTeam[playerid] == NAZEV_TEAMU) { SetPlayerColor(playerid, BARVA); SetPlayerHealth(playerid, 100); if(DMZONICKYXD[playerid] == 0) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 1) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 2) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 3) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 4) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 5) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 6) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 7) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 8) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 9) SetPlayerPos(playerid, X,Y,Z); if(DMZONICKYXD[playerid] == 10) SetPlayerPos(playerid, X,Y,Z); Prikaz dcmd_dm0(playerid, params[]) { #pragma unused params new string[70]; SetPlayerInterior(playerid,0); if(gTeam[playerid] == TVUJ_TEAM ) SetPlayerPos(playerid,x,y,z); else if(gTeam[playerid] == TVUJ_TEAM ) SetPlayerPos(playerid,x,y,z); else if(gTeam[playerid] == TVUJ_TEAM ) SetPlayerPos(playerid,x,y,z); format(string, 70, "[ ! ]Hrac %s se portl na /dm0", Jmeno(playerid)); SendClientMessageToAll(COLOR_WHITE,string); DMZONICKYXD[playerid] = 0; //zde si nastavis od 0-10 podle toho kolik si tehc dm udelas. return true; } Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Sk[Cz ten dcmd prikaz byl udelal pres params a pres switch, viz. http://pawno.cz/viewtopic.php?f=79&t=12419 dole.. Link to comment Share on other sites More sharing options...
0 NurofeN-Cz 0 Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Sk[Cz ten dcmd prikaz byl udelal pres params a pres switch, viz. http://pawno.cz/viewtopic.php?f=79&t=12419 dole.. Nechapu co tim chces rict. Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Sk[Cz ten dcmd prikaz byl udelal pres params a pres switch, viz. http://pawno.cz/viewtopic.php?f=79&t=12419 dole.. Nechapu co tim chces rict. Takhle bude delat prikaz /dm0 /dm1 /dm2 /dm3 a pres params + switch by udelal /dm [0 - 3] Link to comment Share on other sites More sharing options...
0 NurofeN-Cz 0 Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Sk[Cz ten dcmd prikaz byl udelal pres params a pres switch, viz. http://pawno.cz/viewtopic.php?f=79&t=12419 dole.. Nechapu co tim chces rict. Takhle bude delat prikaz /dm0 /dm1 /dm2 /dm3 a pres params + switch by udelal /dm [0 - 3] Nj.. dobre ja uz to mam bohuzel tak, jak jsem napsal. Ale nevadi Link to comment Share on other sites More sharing options...
0 Guest Frodo Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 No proto ti to pisu aby jsi vedel do budoucna ze to jde i lepsim zpusobem Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Radíte mu blbosti #define QCMD(%0) if(strcmp(%0, cmdtext, true) == 0) a daj iba new bool:dm[MAX_PLAYERS]; QCMD("/DM1"){ http://wiki.sa-mp.com/wiki/SetSpawnInfo dm[playerid] = true; } a do príkazov daj if(dm[playerid] == true) return 0; a potom aby sa vrátil daj QCMD("/home"){ http://wiki.sa-mp.com/wiki/SetSpawnInfo dm[playerid] = false; } a ako súradnice daj "domáce" súradnice... ono to je tak že ak zomreš tak ostaneš na tých súradniciach ale kebyže potrápiš hlavičku vieš spraviť aj vlastný system cez 1 riadok npr. SetSpawnInfoEx len potrápiť hlavičku... Link to comment Share on other sites More sharing options...
0 NurofeN-Cz 0 Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 Co meles, to moje neni blbost Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 není ale je to blbší spôsob ktorý zabere moc riadkov stačí ti takéto vysvetlenie ? Link to comment Share on other sites More sharing options...
0 tejpek 3 Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 mezi new a define a ostatni forwardy forward nemocnice(playerid); udelame si public nemocnice public nemocnice(playerid) { SetPlayerPos } a pod onplayerdeath SetTimerEx("nemocnice",5000,false,"i", playerid); // 5 sekund ma ta animace, a pak se az spawne, proto 5 sekund a ne driv Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 15. Září, 2010 Share Odesláno: 15. Září, 2010 pls, kdo mi poradi s PHP, odmenim se v PWN fuj, ty kokos kukni očom sme hovorili potom kukni čo si spravil, a nehovoriac otom že to ani nepôjde Link to comment Share on other sites More sharing options...
Dotaz
Mischino19 2
cfte mam DM zonu a chcem spravit ze ked v tej DM skape tak sa nespawne na zaciatok celeho modu ale v tej DM zone... thx
Link to comment
Share on other sites
14 odpovědí na tuto otázku
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now