Jump to content
  • 0

pomoc help limitovy mute


Guest prezdivka

Dotaz

toto predelat prosim hotovy tut jak udelat

dcmd_mute(playerid, params[])
{
   //---------------------------------------|
   TestPrint("dcmd_mute(playerid, params[])");
   //---------------------------------------|
   if(IsPlayerConnected(playerid))
{
    if(strlen(params) > 11) return SendClientMessage(playerid, B_BILA, "[  !  ] Chybne parametry!");
	if(Informace[playerid][AdminLevel] < 1) return SendClientMessage(playerid, B_BILA, "Nemate dostatecny Admin-Level.");
   	if(!strlen(params)) return SendClientMessage(playerid, B_BILA, "Pouziti: /mute [iD]");

   	new CMD_ID = strval(params);
	if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, B_BILA, "Hrac neni pripojeny.");
	if(Informace[CMD_ID][umlceni]) return SendClientMessage(playerid, B_BILA, "Hrac uz je umlceny.");

	new string[220];
  		format(string, sizeof(string), "[!] Byl jste umlcen Administratorem %s.", Jmeno(playerid));
  	 	SendClientMessage(CMD_ID, B_BILA, string);

   	format(string, sizeof(string), "[!] Hrac %s byl umlcen Administratorem %s.", Jmeno(CMD_ID), Jmeno(playerid));
   	SendClientMessageToAll(B_ORAN, string);

   	Informace[CMD_ID][umlceni] = 1;
   }
   return 1;

 

nevím jak to udelat na cas :(

Link to comment
Share on other sites

Recommended Posts

  • 0

Já sem to v t Maikeroo Town 2 udělal vylepšil takto:

 

dcmd_mute(playerid, params[])
{
   //---------------------------------------|
   TestPrint("dcmd_mute(playerid, params[])");
   //---------------------------------------|
   if(IsPlayerConnected(playerid))
{
	if(Informace[playerid][AdminLevel] < 4)	return SendClientMessage(playerid, B_BILA, "Nemate dostatecny Admin-Level.");
		new pos;
		if(!params[0] || !(pos = chrfind(' ', params) + 1) || !params[pos]) return SendClientMessage(playerid, B_BILA, "Pouziti: /mute [iD] [MINUT 1-10]");
   	new CMD_ID = strval(params), pocet = strval(params[pos]), string[256];
	if(Informace[CMD_ID][umlceni] == 1) return SendClientMessage(playerid, B_BILA, "[  !  ] Hrac uz je umlceny.");
   	if(!IsPlayerConnected(CMD_ID)) return SendClientMessage(playerid, B_BILA, "Hrac neni pripojeny.");

  		format(string, sizeof(string), "[!] Byl jste umlcen Administratorem %s. Odmlcen budes za %d minuty.", Jmeno(playerid), pocet);
  	 	SendClientMessage(CMD_ID, B_BILA, string);

   	format(string, sizeof(string), "[!] Hrac %s byl umlcen Administratorem %s. Odmlcen bude za %d minuty.", Jmeno(CMD_ID), Jmeno(playerid), pocet);
   	SendClientMessageToAll(B_ORAN, string);

   	Informace[CMD_ID][umlceni] = 1;
   	Informace[CMD_ID][umlceniCount] = pocet;
}
   return 1;
}

 

Snad vám to nějak pomůže :thumbup:

 

 

EDIT: //

Nyní tam pojistka kolik se ma nastavit minut, ale tu si tam snad přidáte ne.. pochybuju že někdo dostane ban mute na více jak 10 minut ;)

Link to comment
Share on other sites

  • 0

A co třeba k tomu dát definice. Takhle to asi nikomu nepomůže. May zkušeným pawnetrům který pomoct nepotřebují :d Dej si to do pawna a vyřeš errory :) Pak to sem dej :rap:

Link to comment
Share on other sites

  • 0
ho potrebuju dajte :d to chci na s :) a od chytraka davat kazdymu blbcoj RCOn se mi nechce

Jestli to chceš kopčit přímo z modu tak to si porad sám :p :mrgreen:

Link to comment
Share on other sites

  • 0
[email protected]":24nlozup]A co třeba k tomu dát definice. Takhle to asi nikomu nepomůže. May zkušeným pawnetrům který pomoct nepotřebují :d Dej si to do pawna a vyřeš errory :) Pak to sem dej :rap:

 

Žádný errory tam nejsou. A když nepochopíš jednoduchý kód tak se do toho pawna neser. Kdybys četl pozorně tak sem to uvedl jako příklad ! Definice a proměné si každej uloží sám :wave:

Link to comment
Share on other sites

  • 0
[email protected]":175uown1]A co třeba k tomu dát definice. Takhle to asi nikomu nepomůže. May zkušeným pawnetrům který pomoct nepotřebují :d Dej si to do pawna a vyřeš errory :) Pak to sem dej :rap:

 

Žádný errory tam nejsou. A když nepochopíš jednoduchý kód tak se do toho pawna neser. Kdybys četl pozorně tak sem to uvedl jako příklad ! Definice a proměné si každej uloží sám :wave:

at zije inteligence !!! no nvm bylo by slusnost to novackum vysvetlit ja sam sem lamka priznavam a nemusis se hned rozcilovat

Link to comment
Share on other sites

  • 0
[email protected]":hzb38q9n]A co třeba k tomu dát definice. Takhle to asi nikomu nepomůže. May zkušeným pawnetrům který pomoct nepotřebují :d Dej si to do pawna a vyřeš errory :) Pak to sem dej :rap:

 

Žádný errory tam nejsou. A když nepochopíš jednoduchý kód tak se do toho pawna neser. Kdybys četl pozorně tak sem to uvedl jako příklad ! Definice a proměné si každej uloží sám :wave:

Toho smajla sis tedkon mohl odpustit ptž si mě nasral xD :d řekl jsem že začátečník si ty errory nevyřeší. Proto když to někomu posíláš tak jako by si dělal tut takže je to lepší i s definicema. Jen aby to ty začátečníci měli taky. Oni si ty definice sami neudělají a pak tu zase bude milion otázek chápeš. Myslel jsem to dobře tak se uklidni!

Link to comment
Share on other sites

  • 0

supeer funguje ot na 100 % pise mi to krasnych 26 erroru

C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2256) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2262) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2287) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2292) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2311) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2331) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2361) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2378) : error 017: undefined symbol "PlayerIp"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2388) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2404) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2405) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2406) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2458) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2504) : error 017: undefined symbol "GetJobColor"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2541) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2549) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2589) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2648) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2708) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2746) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2763) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2795) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2814) : error 017: undefined symbol "TestPrint"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2822) : error 017: undefined symbol "Jmeno"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2830) : error 017: undefined symbol "dcmd_s"
C:\Documents and Settings\Luboš\Plocha\Pracovna SA-MP\samp022\gamemodes\mtv3.pwn(2831) : error 017: undefined symbol "dcmd_p"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

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...