AvestX 5 Odesláno: 20. Listopad, 2009 Share Odesláno: 20. Listopad, 2009 Zdar, přináším vám MiniTuT na dání hráči něčeho třeba piva. Nahoru (Pokud máte nedávejte): #define dcmd(%1,%2,%3) if ((strcmp((%3)[1],#%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 OnPlayerCommandText: dcmd(pivo,4,cmdtext);// Že je příkaz pivo, 4 = kolik to má znaků. A Na konec modu (Mimo public) dcmd_pivo(playerid, params[]) { new id = strval(params); // ID je params nadefinuovani. new string[128]; //Nadefinujem string. if (!strlen(params)) return SendClientMessage(playerid, cervena, "[ -- ]: Špatné použití, dejte /pivo [iD] !");//Pokud zadá třeba /pivo bez ničeho. if(!IsPlayerConnected(id)) return SendClientMessage(playerid, cervena, "[ -- ]: Toto ID neni na serveru !");// Pokud není hráč na serveru. SendClientMessage(playerid, cervena, "[ ++ ]: Ožral jsi ho :D"); // Vipíše hráčí kdo ho ožral že ho ožral . format(string, sizeof(string), "[ -- ]: Hráč/Admin %s tě ožral .",Jmeno(playerid));// Zformátovaný string. SendClientMessage(id, cervena, string); // V čem se string oběví. SetPlayerDrunkLevel(id, 30000000); //Dá mu alkohol v krvi na 3000000 nebo kolik :D bude ožralej jak sv*** . return 1; } P.S.: Je to 100% funkční. Errory ? #define cervena 0xff0000F Link to comment Share on other sites More sharing options...
fugasjunior 1 Odesláno: 20. Listopad, 2009 Share Odesláno: 20. Listopad, 2009 Hej píše mi to chybu : C:\Documents and Settings\Martin\Plocha\0.3 server\gamemodes\lsl.pwn(387) : error 017: undefined symbol "cervena" 1 Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 20. Listopad, 2009 Author Share Odesláno: 20. Listopad, 2009 myslim že chyba bude mezi klávesnicí a židlí Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 20. Listopad, 2009 Share Odesláno: 20. Listopad, 2009 myslim že chyba bude mezi klávesnicí a židlí nedelej chytryho napsal to aby to tam doplnil kvuli těm co nevedi jak to nadefinovat "bounce" Link to comment Share on other sites More sharing options...
AvestX 5 Odesláno: 20. Listopad, 2009 Author Share Odesláno: 20. Listopad, 2009 Nj já nejsem chytrej ale blbej ale to neřeš. #define cervena 0xff0000F Link to comment Share on other sites More sharing options...
Algol 0 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 potřebuji pomoc u dcmd(pivo,4,cmdtext);// Že je příkaz pivo, 4 = kolik to má znaků. mi to hazi tento error warning 225: unreachable code Link to comment Share on other sites More sharing options...
Petr 44 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 Ukaž celý public. Link to comment Share on other sites More sharing options...
Algol 0 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 už mi to jde ale já myslel že mu to pivo dá do ruky ne že ho ožere Link to comment Share on other sites More sharing options...
Algol 0 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 viděl jsem na jednom serveru že mu to dalo to pivo do ruky jak se to dá udělat? Link to comment Share on other sites More sharing options...
Petr 44 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 WIKI: SetPlayerSpecialAction Link to comment Share on other sites More sharing options...
Algol 0 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 myslel jsem že když kliknuli levým tlačítkem myši tak se zapla animace a přidal se trochu drunk level Link to comment Share on other sites More sharing options...
Petr 44 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 No však to je ono. Link to comment Share on other sites More sharing options...
Algol 0 Odesláno: 19. Březen, 2012 Share Odesláno: 19. Březen, 2012 moc dík jde to ty jsi asi nejlepší pomocník ostatní mi psali samý pí*oviny Link to comment Share on other sites More sharing options...
Pingvin 0 Odesláno: 6. Srpen, 2016 Share Odesláno: 6. Srpen, 2016 Hej píše mi to chybu : C:\Documents and Settings\Martin\Plocha\0.3 server\gamemodes\lsl.pwn(387) : error 017: undefined symbol "cervena" ty si asi k***t kal si tu barvu zmen ne to vý i ta nejvetsi lama Link to comment Share on other sites More sharing options...
Hlavní moderátor vEnd 279 Odesláno: 6. Srpen, 2016 Hlavní moderátor Share Odesláno: 6. Srpen, 2016 ty si asi k***t kal si tu barvu zmen ne to vý i ta nejvetsi lama Gratuluji, obnovil jsi 7 let staré téma, abys opravil někoho, kdo tu byl naposledy před třemi lety. Pravidla Zakázáno je psát do témat, u kterých je poslední příspěvek starší 1 měsíce. Zdroj: http://pawno.cz/topic/40416-glob%C3%A1ln%C3%AD-pravidla/ Příště se toho prosím vyvaruj. Link to comment Share on other sites More sharing options...
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