Firess0 1 Odesláno: 9. Říjen, 2015 Share Odesláno: 9. Říjen, 2015 Chcel by som vytvoriť nie jaku takú zonu v ktorej by sa mohol použivať príkaz napr by som chcel abi sa na dragls dal použiť príkaz /heal prikaz viem vytvoriť ale to aby sa to dalo použivať iba na dragls to neviem pomožete mi ?? ako vytvoriť takú zonu ?? Link to comment Share on other sites More sharing options...
0 Lukasz 336 Odesláno: 9. Říjen, 2015 Share Odesláno: 9. Říjen, 2015 IsPlayerInRangeOfPoint Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 9. Říjen, 2015 Author Share Odesláno: 9. Říjen, 2015 a ako sa to použiva ?? :D keď chcem aby to tam vždy bolo mam dať do GamemodeInt ?? Link to comment Share on other sites More sharing options...
0 Anonimus24 0 Odesláno: 9. Říjen, 2015 Share Odesláno: 9. Říjen, 2015 (upraveno) Edited 10. Říjen, 2015 by Anonimus24 Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 9. Říjen, 2015 Author Share Odesláno: 9. Říjen, 2015 kde to mam dať ? a mam error warning 203: symbol is never used: "dcmd_heall" Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 9. Říjen, 2015 Share Odesláno: 9. Říjen, 2015 dcmd_heall(playerid, params[]) { #pragma unused params new Name[24]; new radius1 = strval(params); new heal = strval(params[chrfind(' ',params)+1]); GetPlayerName(playerid,Name,24); if(Player[playerid][AdminLevel]==0) return SendClientMessage(playerid,COLOR_WARNING,"[ ! ] {FFFFFF}Nemáte Administrátorská pravá!"); else if(!strlen(params) || !strlen(params[chrfind(' ',params)+1])) return SendClientMessage(playerid,COLOR_WARNING,"[ ! ] {FFFFFF}/sethpex [Radius] [Health]"); else if(heal < 1) return SendClientMessage(playerid,COLOR_WARNING,"[ ! ] {FFFFFF}Není možné dát méně než 1 HP!"); else if(heal > 100) return SendClientMessage(playerid,COLOR_WARNING,"[ ! ] {FFFFFF}Není možné dát více než 100 HP!"); else if(radius1 > 100000 || radius1 < -1) return SendClientMessage(playerid,COLOR_WARNING,"[ ! ] {FFFFFF}Špatně uvedený rádius."); new string[120]; new Float:gpos1,Float:gpos2,Float:gpos3; GetPlayerPos(playerid, gpos1, gpos2, gpos3); printf("%d - -1",playerid); for(new i=0; i<=Server[ConP]; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i, radius1,gpos1,gpos2,gpos3)) { SetPlayerHealth(i, float(heal)); format(string, 120, "Administrátor %s ti nastavil život na %d",Name,heal); SendClientMessage(i,COLOR_WHITE,string); format(string, 120, "Nastavil jsi HP na %d v radiusu %d",heal,radius1); SendClientMessage(playerid,COLOR_WARNING,string); } } } return 1; } ~> Ech?! A to jsi zase vytáhnul odkaď prosimtě?. #include <zcmd> CMD:healr(playerid, params[]) { if (isnull(params)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /healr [RÁDIUS]"); new iRadius = strval(params); if (iRadius < 1 || iRadius > 99) return SendClientMessage(playerid, -1, "[ ! ] Rozmezí rádiusu je 1-99 !"); new sString[144 + 1], sNick[MAX_PLAYER_NAME + 1], Float: fPlayerPos[3]; GetPlayerPos(playerid, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]); for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if (IsPlayerInRangeOfPoint(playerid, float(iRadius), fPlayerPos[0], fPlayerPos[1], fPlayerPos[2])) SetPlayerHealth(playerid, 100.0); } GetPlayerName(playerid, sNick, sizeof(sNick)); format(sString, sizeof(sString), "Administrátor %s doplnil všem hráčům život v určité oblasti", sNick); SendClientMessageToAll(0xFF000000, sString); return (true); } Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 10. Říjen, 2015 Author Share Odesláno: 10. Říjen, 2015 diki nepopísal by si mi // že sa to naučím a piše error na tom error 017: undefined symbol "GetPlayerPoolSize" Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 10. Říjen, 2015 Share Odesláno: 10. Říjen, 2015 diki nepopísal by si mi // že sa to naučím a piše error na tom error 017: undefined symbol "GetPlayerPoolSize" ~> Stáhni jsi nejnovější Pawno, včetně includů. 1 Link to comment Share on other sites More sharing options...
0 Firess0 1 Odesláno: 10. Říjen, 2015 Author Share Odesláno: 10. Říjen, 2015 diki ale ja to tak nemyslim ja chcem takú tonu že hneť keď vojde do tej zóny dá mu heal nie cez prikaz hneť ako sa zapne server ta zona tam bude Link to comment Share on other sites More sharing options...
0 Anonimus24 0 Odesláno: 10. Říjen, 2015 Share Odesláno: 10. Říjen, 2015 ~> Ech?! A to jsi zase vytáhnul odkaď prosimtě?. #include <zcmd> CMD:healr(playerid, params[]) { if (isnull(params)) return SendClientMessage(playerid, -1, "[ ! ] Použití: /healr [RÁDIUS]"); new iRadius = strval(params); if (iRadius < 1 || iRadius > 99) return SendClientMessage(playerid, -1, "[ ! ] Rozmezí rádiusu je 1-99 !"); new sString[144 + 1], sNick[MAX_PLAYER_NAME + 1], Float: fPlayerPos[3]; GetPlayerPos(playerid, fPlayerPos[0], fPlayerPos[1], fPlayerPos[2]); for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { if (IsPlayerInRangeOfPoint(playerid, float(iRadius), fPlayerPos[0], fPlayerPos[1], fPlayerPos[2])) SetPlayerHealth(playerid, 100.0); } GetPlayerName(playerid, sNick, sizeof(sNick)); format(sString, sizeof(sString), "Administrátor %s doplnil všem hráčům život v určité oblasti", sNick); SendClientMessageToAll(0xFF000000, sString); return (true); } přectav si to že jsem si to udělal! Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 11. Říjen, 2015 Share Odesláno: 11. Říjen, 2015 přectav si to že jsem si to udělal! ~> Neudělal, proměnná Server[ConP] je z exisu. Link to comment Share on other sites More sharing options...
0 Quiter 99 Odesláno: 11. Říjen, 2015 Share Odesláno: 11. Říjen, 2015 diki ale ja to tak nemyslim ja chcem takú tonu že hneť keď vojde do tej zóny dá mu heal nie cez prikaz hneť ako sa zapne server ta zona tam bude OnGameModeInit() - spusti timer napr. 1 alebo 5 sekund v timeri už len kontroluj či sa hráč nachádza na súradniciach healu, ak áno, nastav mu 100% HP, hotovo Link to comment Share on other sites More sharing options...
0 Anonimus24 0 Odesláno: 11. Říjen, 2015 Share Odesláno: 11. Říjen, 2015 ~> Neudělal, proměnná Server[ConP] je z exisu. jo vytvořil nwm proč mi nevěříš a to že tam mám tak sorry že sem to sem vůbec dával ! Link to comment Share on other sites More sharing options...
Dotaz
Firess0 1
Chcel by som vytvoriť nie jaku takú zonu v ktorej by sa mohol použivať príkaz
napr by som chcel abi sa na dragls dal použiť príkaz /heal prikaz viem vytvoriť ale to aby sa to dalo použivať iba na dragls to neviem pomožete mi ??
ako vytvoriť takú zonu ??
Link to comment
Share on other sites
12 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