Mute problem :/
#1

I use this admin script for my server
THIS IS 1 PART OF SCRIPT, I CANT PUT ALL ITS MAX ALLOWED 20000
Код:
//----------------------------------------------------------------------------//
// JAdmin	                                 //
// By Johnson_boy															 //
// ©Johnson_Boy                                //
// DO NOT REMOVE CREDITS	   											 //
//----------------------------------------------------------------------------//

/*
Install:

1. Compile this file using the compiler provided with the sa-mp server package.
2. Copy the .amx file to \filtersripts\ folder.
3. Add the fliterscript to server.cfg


You can modify this script, to any kind of you like, but DO NOT remove credits.
*/


#include <a_samp>
#include <dini>
#include <dutils>

#define FILTERSCRIPT

#pragma dynamic 145000

#define blue 0x375FFFFF
#define red 0xFF0000AA
#define green 0x33FF33AA
#define yellow 0xFFFF00AA
#define grey 0xC0C0C0AA
#define blue1 0x2641FEAA
#define lightblue 0x33CCFFAA
#define orange 0xFF9900AA
#define black 0x2C2727AA

#define COLOR_MESSAGE 0x00C7FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF0088
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOUR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_GREEN2 0x33FF33AA
#define COLOR_ERROR 0xFF0000AA
#define COLOR_MSG 0x00FFFFFF
#define COLOR_PINK 0xFF66FFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_GREEN1 0x33AA33AA
#define COLOR_BROWN 0xA52A2AAA
#define COLOR_PURPLE 0x800080AA
#define COLOR_BLACK 0x000000AA
#define COLOR_GREEN1 0x33AA33AA

#define REGISTER_DIALOG_INPUT 800
#define LOGIN_DIALOG_INPUT 801
#define REGISTER_DIALOG_SAFETY 802
#define REGISTER_DIALOG_SAFETY_ANSWER 803
#define LOGIN_FORGOT_INPUT 805
#define CHANGE_PASSWORD 806

//DCMD
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

//----------------------------------------------------------------------------//
//ENUMS
enum PlayerData
{
	Name[MAX_PLAYER_NAME],
	IP[16],
	Registered,
	Password,
	LoggedIn,
	Level,
	Jailed,
	Frozen,
	Warnings,
	FailLogins,
	Money,
	Score,
	Spawned,
	SafetyQuestion[128],
 	SafetyAnswer,
 	Car,
}
new PlayerInfo[MAX_PLAYERS][PlayerData];

new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw7;
new Text:Textdraw6;

stock PlayerName(playerid)
{
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	return name;
}

stock UserExists(playerid)
{
	new FilePath[128];
	format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));
	
	if(dini_Exists(FilePath)) return 1;
	
	return 0;
}

public OnFilterScriptInit()
{
	print("________________________________________________________________");
	print("\n Las Venturas Party Balkan.");
	print(" ExtremePower");
	print(" Verzija 1.0");
	print(" ");
	print("________________________________________________________________\n");

	ShowNameTags(1);
	ShowPlayerMarkers(1);

	AllowInteriorWeapons(true);
	SetTimer("AutoUnjail",1000,1);

  Textdraw0 = TextDrawCreate(151.000000, 362.000000, "Moras se ulogirati prije igranja");
	TextDrawBackgroundColor(Textdraw0, 255);
	TextDrawFont(Textdraw0, 1);
	TextDrawLetterSize(Textdraw0, 0.639999, 3.199999);
	TextDrawColor(Textdraw0, -1);
	TextDrawSetOutline(Textdraw0, 0);
	TextDrawSetProportional(Textdraw0, 1);
	TextDrawSetShadow(Textdraw0, 1);

	Textdraw1 = TextDrawCreate(0, 0, "_");
	TextDrawBackgroundColor(Textdraw1, 255);
	TextDrawFont(Textdraw1, 1);
	TextDrawLetterSize(Textdraw1, 0, 0);
	TextDrawColor(Textdraw1, -1);
	TextDrawSetOutline(Textdraw1, 0);
	TextDrawSetProportional(Textdraw1, 1);
	TextDrawSetShadow(Textdraw1, 1);
	TextDrawUseBox(Textdraw1, 1);
	TextDrawBoxColor(Textdraw1, 255);
	TextDrawTextSize(Textdraw1, 0,0);

	Textdraw2 = TextDrawCreate(0, 0, "_");
	TextDrawBackgroundColor(Textdraw2, 255);
	TextDrawFont(Textdraw2, 0);
	TextDrawLetterSize(Textdraw2, 0,0);
	TextDrawColor(Textdraw2, -1);
	TextDrawSetOutline(Textdraw2, 0);
	TextDrawSetProportional(Textdraw2, 1);
	TextDrawSetShadow(Textdraw2, 1);
	TextDrawUseBox(Textdraw2, 1);
	TextDrawBoxColor(Textdraw2, 153);
	TextDrawTextSize(Textdraw2, 0,0);
	
	Textdraw3 = TextDrawCreate(135.000000, 360.000000, "Moras se registrirati prije igranja");
	TextDrawBackgroundColor(Textdraw3, 255);
	TextDrawFont(Textdraw3, 1);
	TextDrawLetterSize(Textdraw3, 0.639998, 3.199999);
	TextDrawColor(Textdraw3, -1);
	TextDrawSetOutline(Textdraw3, 0);
	TextDrawSetProportional(Textdraw3, 1);
	TextDrawSetShadow(Textdraw3, 1);
	
	Textdraw6 = TextDrawCreate(0, 0, "4EVER");
	TextDrawBackgroundColor(Textdraw6, 255);
	TextDrawFont(Textdraw6, 3);
	TextDrawLetterSize(Textdraw6,0,0);
	TextDrawColor(Textdraw6, -1);
	TextDrawSetOutline(Textdraw6, 1);
	TextDrawSetProportional(Textdraw6, 1);

	Textdraw7 = TextDrawCreate(0, 0, "Balkan");
	TextDrawBackgroundColor(Textdraw7, 255);
	TextDrawFont(Textdraw7, 3);
	TextDrawLetterSize(Textdraw7, 0, 0);
	TextDrawColor(Textdraw7, -1);
	TextDrawSetOutline(Textdraw7, 1);
	TextDrawSetProportional(Textdraw7, 1);
 	return 1;
}

//------------------------------------------------------------------------------

public OnFilterScriptExit()
{
	TextDrawHideForAll(Textdraw0);
	TextDrawDestroy(Textdraw0);
	TextDrawHideForAll(Textdraw1);
	TextDrawDestroy(Textdraw1);
	TextDrawHideForAll(Textdraw2);
	TextDrawDestroy(Textdraw2);
	TextDrawHideForAll(Textdraw3);
	TextDrawDestroy(Textdraw3);
	TextDrawHideForAll(Textdraw6);
	TextDrawDestroy(Textdraw6);
	TextDrawHideForAll(Textdraw7);
	TextDrawDestroy(Textdraw7);
	return 1;
}

//------------------------------------------------------------------------------

public OnPlayerConnect(playerid)
{



	TogglePlayerClock(playerid, 1);
	GameTextForPlayer(playerid,"~b~Las Venturas ~w~ Party server",10000,1);

	SetPlayerColor(playerid,COLOR_GREY);

  new file[128];
	format(file, sizeof(file), "JAdminScript/Users/%s.ini", PlayerName(playerid));

	PlayerInfo[playerid][IP] = 0;
	PlayerInfo[playerid][Registered] = 0;
	PlayerInfo[playerid][LoggedIn] = 0;
	PlayerInfo[playerid][Password] = 0;
	PlayerInfo[playerid][Level] = 0;
	PlayerInfo[playerid][Jailed] = 0;
	PlayerInfo[playerid][Frozen] = 0;
	PlayerInfo[playerid][Warnings] = 0;
	PlayerInfo[playerid][FailLogins] = 0;
	PlayerInfo[playerid][Money] = 0;
	PlayerInfo[playerid][Score] = 0;
	PlayerInfo[playerid][Spawned] = 0;
	PlayerInfo[playerid][Password] = dini_Int(file,"Password");
	PlayerInfo[playerid][SafetyAnswer] = dini_Int(file,"SafetyAnswer");
	PlayerInfo[playerid][Car] = -1;
	
	if(UserExists(playerid))
	{
		ShowPlayerDialog(playerid, LOGIN_DIALOG_INPUT, DIALOG_STYLE_INPUT, "Logiranje", "Napisi svoju lozinku u mijesto za pisanje", "Ulogiraj se", "Odustani");
		
		TextDrawShowForPlayer(playerid, Textdraw0);
		TextDrawShowForPlayer(playerid, Textdraw1);
		TextDrawShowForPlayer(playerid, Textdraw2);
		TextDrawShowForPlayer(playerid, Textdraw6);
		TextDrawShowForPlayer(playerid, Textdraw7);
		
		SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");

		new WelcomeMsg[128];
  	 	format(WelcomeMsg, sizeof(WelcomeMsg), "Dobrodosao nazad %s. Tvoj nick je registriran.", PlayerName(playerid));
    SendClientMessage(playerid, COLOR_LIGHTGREEN, WelcomeMsg);
		SendClientMessage(playerid, COLOR_WHITE, "Napisi svoju lozinku u mijesto za pisanje");
		SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");
		
	}
	else
	{
	  ShowPlayerDialog(playerid, REGISTER_DIALOG_INPUT ,DIALOG_STYLE_INPUT, "Registracija ", "Upisi svoju zeljenu lozinku.","Registriraj","Odustani");

    SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");

		new Welcome[128];
  	 	format(Welcome, sizeof(Welcome), "Dobrodosao na nas server %s. Nisi jos registriran, Stoga ces se sada registrirati.", PlayerName(playerid));
    SendClientMessage(playerid, COLOR_LIGHTGREEN, Welcome);
    SendClientMessage(playerid, COLOR_LIGHTGREEN, "Samo prati objasnjenja.");
    
    SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");
		SendClientMessage(playerid, COLOR_WHITE, "Registracija: Ima 3 koraka registracije: (sada si na: 1)");
		SendClientMessage(playerid, COLOR_WHITE, "1. Napisi lozinku - Napisi zeljenu lozinku u polje za pisanje.");
    SendClientMessage(playerid, COLOR_WHITE, "2. Sigurnosno pitanje");
    SendClientMessage(playerid, COLOR_WHITE, "3. Odgovor na sigurnosno pitanje");
    
    TextDrawShowForPlayer(playerid, Textdraw1);
		TextDrawShowForPlayer(playerid, Textdraw2);
		TextDrawShowForPlayer(playerid, Textdraw3);
		TextDrawShowForPlayer(playerid, Textdraw6);
		TextDrawShowForPlayer(playerid, Textdraw7);
	}
	
	return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{

	//--------------------------------------------------------------------------
	new file[256];
	format(file,sizeof(file),"JAdminScript/Users/%s.ini", PlayerName(playerid));

  PlayerInfo[playerid][Money] = GetPlayerMoney(playerid);
 	PlayerInfo[playerid][Score] = GetPlayerScore(playerid);

  dini_IntSet(file,"Money",PlayerInfo[playerid][Money]);
  dini_IntSet(file,"Score",PlayerInfo[playerid][Score]);

  return 1;
}
forward PutInJail();
public PutInJail()
{
  for(new i=0; i < MAX_PLAYERS; i++)
  {
		if(PlayerInfo[i][Jailed] == 1 && !IsPlayerInRangeOfPoint(i, 10, 263.4933, 77.6393, 1001.0391))
		{
	  		if(PlayerInfo[i][LoggedIn] == 1 && PlayerInfo[i][Spawned] == 1)
			{
				SendClientMessage(i, COLOR_GREY, "*Ostani u zatvoru!");
				SetPlayerPos(i, 263.4933, 77.6393, 1001.0391);
				SetPlayerInterior(i, 6);
			}
		}
	}
}
//------------------------------------------------------------------------------

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	//REGISTER
	//Enter password
	
  if(dialogid == REGISTER_DIALOG_INPUT)
  {
    if(response == 1)
		{
			if(!inputtext[0])
			{
				ShowPlayerDialog(playerid, REGISTER_DIALOG_INPUT ,DIALOG_STYLE_INPUT, "Registracija", "Upisi zeljenu lozinku u mjesto za pisanje.","Registriraj","Odustani");
				return 1;
			}

      new FilePath[128];
			format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

			new strdate[20], year,month,day;
			getdate(year, month, day);

			new Ip[16];
			GetPlayerIp(playerid,Ip,sizeof(Ip));

  		new password = num_hash(inputtext);
  		PlayerInfo[playerid][Password] = password;
  		PlayerInfo[playerid][Registered] = 1;
			PlayerInfo[playerid][LoggedIn] = 1;

			dini_Create(FilePath);

			dini_IntSet(FilePath,"Password",PlayerInfo[playerid][Password]);

			dini_Set(FilePath,"Ip",Ip);

			format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year);
			dini_Set(FilePath,"RegisteredDate",strdate);

		 	dini_IntSet(FilePath,"Level",0);

			dini_IntSet(FilePath,"Jailed",0);
			dini_IntSet(FilePath,"Frozen",0);
			dini_IntSet(FilePath,"Warnings", 0);

			dini_IntSet(FilePath,"Money",0);
			dini_IntSet(FilePath,"Score",0);

      SendClientMessage(playerid, COLOR_GREY, " ");
			SendClientMessage(playerid, COLOR_GREY, "Registracija: Jedan korak je dovrsen (1/3 zavrseno)");
			
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nova lozinka je uspjesno spremljena.");
			new string[256];
			format(string, sizeof(string), "Your New Password is: \'%s\'.", inputtext);
			SendClientMessage(playerid, COLOR_LIGHTGREEN, string);

      SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "2 korak, sigurnosno pitanje");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Napisi svoje pitanje npr. moj datum rodjenja, u slucaju ako zaboravis lozinku!");
			 
			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
			
			ShowPlayerDialog(playerid, REGISTER_DIALOG_SAFETY, DIALOG_STYLE_INPUT, "Safety question - JAdmin", "Please Enter any question as safety question \nRight answer will be asked from you.", "OK", "Cancel");
			
			return 1;
		}
		return ShowPlayerDialog(playerid, REGISTER_DIALOG_INPUT ,DIALOG_STYLE_INPUT, "Register - JAdmin", "Please enter your new password.","Register","Cancel");}
	
	//Enter Safety Question
	
	if(dialogid == REGISTER_DIALOG_SAFETY)
  {
    if(response == 1)
		{
 	  	new FilePath[128];
			format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));
			
			new string[128];
			format(string, sizeof(string), "%s", inputtext);
			SendClientMessage(playerid, COLOR_GREY, " ");
			SendClientMessage(playerid, COLOR_GREY, "Safety question:");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
			SendClientMessage(playerid, COLOR_GREY, " ");

		 	dini_Set(FilePath,"SafetyQuestion", string);

 			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
 			
			SendClientMessage(playerid, COLOR_GREY, "Registracija: Korak 2 Zavrsen! (2/3 zavrseno)");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, " ");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Korak 3 odg. na sigurnosno pitanje");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Napisi odg. na pitanje koje si napisao prije par sekundi!");

			ShowPlayerDialog(playerid, REGISTER_DIALOG_SAFETY_ANSWER, DIALOG_STYLE_INPUT, "Safety Question Answer - JAdmin", "Please Enter correct answer for your question", "OK", "Cancel");

			return 1;
		}
		return 1;
	}
	
	//Enter Answer for Safety Question

	if(dialogid == REGISTER_DIALOG_SAFETY_ANSWER)
  {
    if(response == 1)
		{
		  new answer = num_hash(inputtext);
		  
		  if(!inputtext[0])
			{
				ShowPlayerDialog(playerid, REGISTER_DIALOG_SAFETY_ANSWER, DIALOG_STYLE_INPUT, "Safety Question Answer - JAdmin", "Please Enter correct answer for your question", "OK", "Cancel");
				return 1;
			}
		  
 	  	new FilePath[128];
			format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

			new string[128];
			format(string, sizeof(string), "%s", inputtext);
			SendClientMessage(playerid, COLOR_GREY, " ");
			SendClientMessage(playerid, COLOR_GREY, "Sigurnosno pitanje odgovor:");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
			SendClientMessage(playerid, COLOR_GREY, " ");

  		PlayerInfo[playerid][SafetyAnswer] = answer;
			dini_IntSet(FilePath,"SafetyAnswer",PlayerInfo[playerid][SafetyAnswer]);

 			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
 			
			TextDrawHideForPlayer(playerid, Textdraw0);
			TextDrawHideForPlayer(playerid, Textdraw1);
			TextDrawHideForPlayer(playerid, Textdraw2);
			TextDrawHideForPlayer(playerid, Textdraw3);
			TextDrawHideForPlayer(playerid, Textdraw6);
			TextDrawHideForPlayer(playerid, Textdraw7);
 			
			SendClientMessage(playerid, COLOR_GREY, "Registracija korak 3 (3/3 zavrseno)");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Cestitamo uspijesno si kreirao svoj account/racun!");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Sljedeci put kada dodes na server morati ces se ulogirati sa svojom lozinkom!");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "Uzivaj na serveru!");

			return 1;
		}
		return 1;
	}
	
	//--------------------------------------------------------------------------
	//Login

	if(dialogid == LOGIN_DIALOG_INPUT)
  {
    if(response == 1)
		{
      new password = num_hash(inputtext);

	 		if(PlayerInfo[playerid][Password] == password)
 			{
 	  		new file[128];
				format(file, sizeof(file), "JAdminScript/Users/%s.ini", PlayerName(playerid));

			 	PlayerInfo[playerid][LoggedIn] = 1;
			  PlayerInfo[playerid][Registered] = 1;
			  PlayerInfo[playerid][Level] = dini_Int(file,"Level");

				PlayerInfo[playerid][Jailed] = dini_Int(file,"Jailed");
				PlayerInfo[playerid][Frozen] = dini_Int(file,"Frozen");
				PlayerInfo[playerid][Warnings] = dini_Int(file,"Warnings");


			 	PlayerInfo[playerid][Money] = dini_Int(file,"Money");
			 	GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);

			 	PlayerInfo[playerid][Score] = dini_Int(file,"Score");
			 	SetPlayerScore(playerid, PlayerInfo[playerid][Score]);

        SendClientMessage(playerid, COLOR_GREY, " ");
				SendClientMessage(playerid, COLOR_WHITE, "Racun informacija");
			 	SendClientMessage(playerid, COLOR_WHITE, "Uspijesno si se ulogirao.");
And when anybody come on server nobody can talk evrybody is muted + me we can talk just on PM
Reply
#2

PART 2

Код:
	 			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);

				TextDrawHideForPlayer(playerid, Textdraw0);
				TextDrawHideForPlayer(playerid, Textdraw1);
				TextDrawHideForPlayer(playerid, Textdraw2);
				TextDrawHideForPlayer(playerid, Textdraw7);
				TextDrawHideForPlayer(playerid, Textdraw6);

				new name[MAX_PLAYER_NAME];
				GetPlayerName(playerid, name, sizeof(name));

				new string2[128], tmp3[100];
				GetPlayerIp(playerid,tmp3,100);
				format(string2, sizeof(string2),"*Ulogiranje: %s Se ulogirao sa IP: %s", name, tmp3);
				print(string2);

				return 1;
			}
			else
			{
			  SendClientMessage(playerid, COLOR_RED, "Netocna lozinka");
				PlayerInfo[playerid][FailLogins] ++;

				if(PlayerInfo[playerid][FailLogins] == 2)
  			{
  			  SendClientMessage(playerid, COLOR_LIGHTGREEN, "");
  			   	SendClientMessage(playerid, COLOR_ORANGE, "2 puta si krivo napisao lozinku");
  			   	SendClientMessage(playerid, COLOR_ORANGE, "Ako si ti vlasnik ovog nicka, a nemozes se sjetiti lozinke, mozes je promijeniti preko tajnog pitanja i tajnog odg.");
  				SendClientMessage(playerid, COLOR_ORANGE, " ");
					SendClientMessage(playerid, COLOR_ORANGE, "Molim da napises odgovor na pitanje u mijesto za pisanje");

  			
  			  new file[128];
					format(file, sizeof(file), "JAdminScript/Users/%s.ini", PlayerName(playerid));

          new SavedQuestion[256];
					SavedQuestion = dini_Get(file,"SafetyQuestion");

  			  new string[256];
  			  format(string, sizeof(string), "Zaboravio svoju lozinku? \nDNema veze odgovori na tajno pitanje i napisi novu lozinku.\n\nYour question was:\n%s", SavedQuestion);
		  	  ShowPlayerDialog(playerid, LOGIN_FORGOT_INPUT ,DIALOG_STYLE_INPUT, "Zaboravljna lozinka? - JAdmin", string,"Ulogiraj se","Odustani");
					return 1;
				}

				if(PlayerInfo[playerid][FailLogins] >= 4)
  			{
		  	  new name[MAX_PLAYER_NAME];
					GetPlayerName(playerid, name, sizeof(name));

		  	  new string3[128];
		  	  format(string3, sizeof(string3), "***AUTO-KICK: %s Je kickan sa servera, zbog netocnih lozinka na logiranju", name);

					SendClientMessageToAll(COLOR_RED, string3);
					return Kick(playerid);
				}
			}
		}
		return ShowPlayerDialog(playerid, LOGIN_DIALOG_INPUT, DIALOG_STYLE_INPUT, "Logiranje -", "Napisi svoju lozinku u mijesto na misanje", "Ulogiraj se", "Odustani");
	}
	
	//--------------------------------------------------------------------------
	//Password recovery
	
	if(dialogid == LOGIN_FORGOT_INPUT)
  {
    if(response == 1)
		{
		  new answer = num_hash(inputtext);
			
			if(answer == PlayerInfo[playerid][SafetyAnswer])
			{
			  SendClientMessage(playerid, COLOR_GREY, "Informacija:");
				SendClientMessage(playerid, COLOR_LIGHTGREEN, "Napisao si tocan odgovor, sada mozes promijeniti svoju lozinku!");
        ShowPlayerDialog(playerid, CHANGE_PASSWORD, DIALOG_STYLE_INPUT, "Promijena lozinke", "Napisi svoju novu lozinku", "OK", "Odustani");
			}
			else
			{
			  PlayerInfo[playerid][FailLogins] ++;
				SendClientMessage(playerid, COLOR_RED, "Netocan odgovor.");

        new file[128];
				format(file, sizeof(file), "JAdminScript/Users/%s.ini", PlayerName(playerid));

        new SavedQuestion[256];
				SavedQuestion = dini_Get(file,"SafetyQuestion");

        new string[256];
				format(string, sizeof(string), "Zaboravio svoju lozinku? \nDNema veze odgovori na tajno pitanje i napisi novu lozinku.\n\nYour question was:\n%s", SavedQuestion);
		   	ShowPlayerDialog(playerid, LOGIN_FORGOT_INPUT ,DIALOG_STYLE_INPUT, "Zagoravio sifru?", string,"Login","Odustani");

				if(PlayerInfo[playerid][FailLogins] >= 4)
  			{
		  	  new name[MAX_PLAYER_NAME];
					GetPlayerName(playerid, name, sizeof(name));

		  	  new string3[128];
		  	  format(string3, sizeof(string3), "***AUTO-KICK: %s Je kickan sa servera, zbog netocnih lozinka na logiranju.", name);

					SendClientMessageToAll(COLOR_RED, string3);
					return Kick(playerid);
				}
			}

 			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
 			return 1;
		}
		return 1;
	}

	//Change password

	if(dialogid == CHANGE_PASSWORD)
  {
    if(response == 1)
		{
			if(!inputtext[0])
			{
				SendClientMessage(playerid, COLOR_RED, "Sifra mora biti veca od 4 slova/broja!");
			 	ShowPlayerDialog(playerid, CHANGE_PASSWORD, DIALOG_STYLE_INPUT, "Promijena lozinke", "Napisi svoju NOVU lozinku", "OK", "Odustani");
				return 1;
			}

      new FilePath[128];
			format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

  		new password = num_hash(inputtext);
  		PlayerInfo[playerid][Password] = password;

			dini_IntSet(FilePath,"Password",PlayerInfo[playerid][Password]);

			SendClientMessage(playerid, COLOR_GREY, "Racun informacija!");
			new string[256]; format(string, sizeof(string), "Promijenio si svoju lozinku! Nova lozinka: \'%s\'.", inputtext);
      SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
      
			PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
			
			TextDrawHideForPlayer(playerid, Textdraw0);
			TextDrawHideForPlayer(playerid, Textdraw1);
			TextDrawHideForPlayer(playerid, Textdraw2);
			TextDrawHideForPlayer(playerid, Textdraw3);
			TextDrawHideForPlayer(playerid, Textdraw6);
			TextDrawHideForPlayer(playerid, Textdraw7);
			
			new file[128];
			format(file, sizeof(file), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		 	PlayerInfo[playerid][LoggedIn] = 1;
		  PlayerInfo[playerid][Registered] = 1;
		  PlayerInfo[playerid][Level] = dini_Int(file,"Level");

			PlayerInfo[playerid][Jailed] = dini_Int(file,"Jailed");
			PlayerInfo[playerid][Frozen] = dini_Int(file,"Frozen");
			PlayerInfo[playerid][Warnings] = dini_Int(file,"Warnings");


		 	PlayerInfo[playerid][Money] = dini_Int(file,"Money");
		 	GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);

		 	PlayerInfo[playerid][Score] = dini_Int(file,"Score");
		 	SetPlayerScore(playerid, PlayerInfo[playerid][Score]);

			return 1;
		}
		return 1;
	}
	
	//--------------------------------------------------------------------------
	
	
	
	return 1;
}

//------------------------------------------------------------------------------
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestClass(playerid, classid)
{
	return 1;
}
//------------------------------------------------------------------------------
public OnPlayerRequestSpawn(playerid)
{

	return 1;
}

public OnPlayerSpawn(playerid)
{
	PlayerInfo[playerid][Spawned] = 1;
	return 1;
}

//------------------------------------------------------------------------------
// DCMD COMMANDS
//------------------------------------------------------------------------------

dcmd_changepassword(playerid, params[])
{
  if(!UserExists(playerid)) return SendClientMessage(playerid, COLOR_RED,"This username is NOT registered, please use /register [password].");
  	if(!params[0]) return SendClientMessage(playerid, COLOR_RED, "Correct Usage: /changepassword [new password]");
  	if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid, COLOR_RED,"Error: You are not logged in.");
  	
  	new FilePath[128];
	format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

  	new password = num_hash(params);
  PlayerInfo[playerid][Password] = password;

	dini_IntSet(FilePath,"Password",PlayerInfo[playerid][Password]);

	SendClientMessage(playerid, COLOR_GREY, "Account Information:");
	new string[256]; format(string, sizeof(string), "You have changed your password! New Password: \'%s\'.", params);
	SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
	return PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
}
//----------------------------------------------------------------------------//
//ADMIN COMMANDS

dcmd_setlevel(playerid, params[])
{
	if(PlayerInfo[playerid][LoggedIn] != 1) return SendClientMessage(playerid, COLOR_RED, "You must be logged in to use command /setlevel.");
	if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
		new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setlevel [playerid] [level]");

		new kohde, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME];
		kohde = strval(tmp);

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /givescore [playerid] [amount]");
		level = strval(tmp2);
		
		if(IsPlayerNPC(kohde)) return SendClientMessage(playerid, COLOR_RED, "You can't make NPC Admin.");
		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");
		
		if(PlayerInfo[kohde][LoggedIn] != 1) return SendClientMessage(playerid, COLOR_RED, "Target player must be logged in to use command \"setlevel\".");
		if(level == PlayerInfo[kohde][Level]) return SendClientMessage(playerid,COLOR_RED,"Player is already this level.");

		GetPlayerName(kohde, playername, sizeof(playername));
		GetPlayerName(playerid, adminname, sizeof(adminname));

    new string[128];
		if(level > 0)
		{
			format(string,sizeof(string),"Administrator %s has set your adminlevel to [level %d]",adminname, level);
		}
		else
		{
			format(string,sizeof(string),"Administrator %s has taken your adminrights off [current level %d]",adminname, level);
		}
		SendClientMessage(kohde,COLOR_GREEN,string);

		new file[256];
		format(file,sizeof(file),"JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(file,"Level",level);
		PlayerInfo[kohde][Level] = level;
		
		PlayerPlaySound(kohde,1057,0.0,0.0,0.0);
		PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
		return 1;
	}
	return 1;

}

dcmd_kick(playerid, params[])
{
	if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /kick [playerid] [reason]");

		new kohde;
		kohde = strval(tmp);

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /kick [playerid] [reason]");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

		new string[128];
		format(string, sizeof(string), "**Admin Kick: %s has been kicked from server. (reason: %s)", PlayerName(kohde), params[2]);
	  SendClientMessageToAll(COLOR_RED, string);

	  return Kick(kohde);
	}
	return 1;
}

dcmd_ban(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /ban [playerid] [reason]");

		new kohde;
		kohde = strval(tmp);

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /ban [playerid] [reason]");


		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

		new string[128];
		format(string, sizeof(string), "**Admin Ban: %s has been banned from server. (reason: %s)", PlayerName(kohde), params[2]);
	  SendClientMessageToAll(COLOR_RED, string);

	  return BanEx(kohde, string);
	}
	return 1;
}

dcmd_freeze(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /freeze [playerid] [reason]");

		new kohde;
		kohde = strval(tmp);
		
		if(IsPlayerNPC(kohde)) return SendClientMessage(playerid, COLOR_RED, "You can't freeze NPC");

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /freeze [playerid] [reason]");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

		new string[128];
		format(string, sizeof(string), "**Admin Freeze: %s has been frozen by admin. (reason: %s)", PlayerName(kohde), params[2]);
	  SendClientMessageToAll(COLOR_RED, string);
	  
  	PlayerPlaySound(kohde,1057,0.0,0.0,0.0);

		new string2[128];
		format(string2, sizeof(string2), "Frozen by admin: %s", params[2]);
		GameTextForPlayer(playerid, string2, 10000, 6);

	  TogglePlayerControllable(kohde, 0);

		PlayerInfo[kohde][Frozen] = 1;
		
		SetPlayerSpecialAction(kohde,SPECIAL_ACTION_HANDSUP);

		new FilePath[128];
		format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(FilePath,"Frozen",1);
	  return 1;
	}
	return 1;
}

dcmd_unfreeze(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /unfreeze [playerid]");

		new kohde;
		kohde = strval(tmp);
		
		if(PlayerInfo[kohde][Frozen] == 0) return SendClientMessage(playerid, COLOR_RED, "That player is not frozen.");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

		new string[128];
		format(string, sizeof(string), "**Admin UnFreeze: %s has been unfrozen by admin.", PlayerName(kohde));
	  SendClientMessageToAll(COLOR_RED, string);

	  TogglePlayerControllable(kohde, 1);
	  
	  	PlayerPlaySound(kohde,1057,0.0,0.0,0.0);

		PlayerInfo[kohde][Frozen] = 0;

		new FilePath[128];
		format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(FilePath,"Frozen",0);
		return 1;
	}
	return 1;
}

dcmd_jail(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Napisi: /jail [ID] [razlog]");

		new kohde;
		kohde = strval(tmp);

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "Napisi: /jail [ID] [razlog]");

		if(IsPlayerNPC(kohde)) return SendClientMessage(playerid, COLOR_RED, "Nemozes botove zatvarati!");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Netocan ID");

    TogglePlayerControllable(kohde, 0);
		new string[128];
		format(string, sizeof(string), "Admin je zatvorio %s u zatvor (Razlog: %s)", PlayerName(kohde), params[2]);
	  SendClientMessageToAll(COLOR_RED, string);

		PlayerInfo[kohde][Jailed] = 1;
		
		PlayerPlaySound(kohde,1057,0.0,0.0,0.0);

		new string2[128];
		format(string2, sizeof(string2), "Zatvoren si! Razlog: %s", params[2]);
		GameTextForPlayer(playerid, string2, 10000, 6);
		SetPlayerPos(playerid, 1300.9757,1237.7192,19.3438);
		SendClientMessage(playerid, COLOR_GREEN, "Zatvoren si i zamrzun na neko vrijeme od admina, zbog krsenja /pravila !");

		new FilePath[128];
		format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(FilePath,"Jailed",1);
		return 1;
	}
	return 1;
}

dcmd_unjail(playerid, params[])
{
	if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "Napisi: /unjail [ID]");

		new kohde;
		kohde = strval(tmp);

		if(PlayerInfo[kohde][Jailed] == 0) return SendClientMessage(playerid, COLOR_RED, "Igrac nije u zatvoru!");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Netocan ID");

    TogglePlayerControllable(kohde, 1);
		new string[128];
		format(string, sizeof(string), "Pusten si %s iz zatvora i odmrznut sljedeci put nemoj krsiti /pravila !", PlayerName(kohde));
	  SendClientMessageToAll(COLOR_RED, string);

		PlayerInfo[kohde][Jailed] = 0;
		
		PlayerPlaySound(kohde,1057,0.0,0.0,0.0);

		new FilePath[128];
		format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(FilePath,"Jailed",0);
		
		SetPlayerInterior(playerid,0);
 		SetPlayerPos(playerid, 1318.4937,1266.2261,10.8203);

		return 1;
	}
	return 1;
}

dcmd_warn(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /warn [playerid] [reason]");

		new kohde;
		kohde = strval(tmp);

		if(!strlen(tmp2)) return SendClientMessage(playerid, red, "USAGE: /warn [playerid] [reason]");

		if(IsPlayerNPC(kohde)) return SendClientMessage(playerid, COLOR_RED, "You can't warn NPC");

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

		new string[128];
Reply
#3

and part 3

Код:
format(string, sizeof(string), "**Admin Warn: %s has been warned by admin. (reason: %s)", PlayerName(kohde), params[2]);
	  SendClientMessageToAll(COLOR_RED, string);

		PlayerInfo[kohde][Warnings] ++;
		
		PlayerPlaySound(kohde,1057,0.0,0.0,0.0);
		
		new string2[128];
		format(string2, sizeof(string2), "Admin Has Warned you! %s", params[2]);
		GameTextForPlayer(playerid, string2, 10000, 6);

		new FilePath[128];
		format(FilePath, sizeof(FilePath), "JAdminScript/Users/%s.ini", PlayerName(playerid));

		dini_IntSet(FilePath,"Jailed", PlayerInfo[kohde][Warnings]);
		return 1;
	}
	return 1;
}

dcmd_disarm(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disarm [playerid]");

		new kohde;
		kohde = strval(tmp);

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

	  SendClientMessageToAll(COLOR_RED, "Admin has reseted your weapons");

		PlayerPlaySound(kohde,1057,0.0,0.0,0.0);
		ResetPlayerWeapons(kohde);

		return 1;
	}
	return 1;
}

dcmd_userinfo(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disarm [playerid]");

		new kohde;
		kohde = strval(tmp);

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

	  new Float:X, Float:Y, Float:Z;
		GetPlayerPos(kohde, X, Y, Z);
		new Float:Health, Float:Armour;
		GetPlayerHealth(kohde, Health);
		GetPlayerArmour(kohde, Armour);

		new Ip[16];
		GetPlayerIp(kohde,Ip,sizeof(Ip));

		new name[25], string2[128];
		GetPlayerName(kohde, name, 25);
		format(string2, sizeof(string2), "*Userinfo %s(%d)*", name, kohde);
		SendClientMessage(playerid, COLOR_LIGHTGREEN, string2);

		new string[128];
		format(string, sizeof(string), "X:%0.1f Y:%0.1f Z:%0.1f Interior %d", Float:X, Float:Y, Float:Z, GetPlayerInterior(playerid));
		SendClientMessage(playerid, COLOR_LIGHTGREEN, string);

		new string3[128];
		format(string3, sizeof(string3), "Health: %0.1f Armour: %0.1f Score: %d Money: %d Skin: %d IP: %s Ping: %d Weapon: %d Wanted: %d", Float:Health, Float:Armour, GetPlayerScore(playerid), GetPlayerMoney(playerid), GetPlayerSkin(playerid), Ip, GetPlayerPing(playerid), GetPlayerWeapon(playerid), GetPlayerWantedLevel(playerid));
    SendClientMessage(playerid, COLOR_LIGHTGREEN, string3);

		return 1;
	}
	return 1;

}


dcmd_goto(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /goto [playerid]");

		new kohde;
		kohde = strval(tmp);

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

	  new Float:X, Float:Y, Float:Z;
		GetPlayerPos(kohde, X, Y, Z);
		
		SetPlayerInterior(playerid,GetPlayerInterior(kohde));
		
		if(GetPlayerState(playerid) == 2)
		{
			SetVehiclePos(GetPlayerVehicleID(playerid),X+3,Y,Z+1);
			LinkVehicleToInterior(GetPlayerVehicleID(playerid),GetPlayerInterior(kohde));
			SetVehicleVirtualWorld(GetPlayerVehicleID(playerid),GetPlayerVirtualWorld(kohde));
		}
		else SetPlayerPos(playerid,X+2,Y,Z+2);
		
		return 1;
	}
	return 1;

}

dcmd_get(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], tmp2[256], Index;
		tmp = strtok(params,Index), tmp2 = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /get [playerid]");

		new kohde;
		kohde = strval(tmp);

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

	  new Float:X, Float:Y, Float:Z;
		GetPlayerPos(playerid, X, Y, Z);

		SetPlayerInterior(kohde,GetPlayerInterior(playerid));

		if(GetPlayerState(kohde) == 2)
		{
			SetVehiclePos(GetPlayerVehicleID(kohde),X+3,Y,Z+1);
			LinkVehicleToInterior(GetPlayerVehicleID(kohde),GetPlayerInterior(playerid));
			SetVehicleVirtualWorld(GetPlayerVehicleID(kohde),GetPlayerVirtualWorld(playerid));
		}
		else SetPlayerPos(kohde,X+2,Y,Z+2);

		return 1;
	}
	return 1;

}

dcmd_car(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
		#pragma unused params

		if(PlayerInfo[playerid][Car] != -1)
	  {
	    DestroyVehicle(PlayerInfo[playerid][Car]);
		}
	  new Float:X, Float:Y, Float:Z, Float:A;
	  GetPlayerPos(playerid, X, Y, Z);
	  GetPlayerFacingAngle(playerid, A);
	  PlayerInfo[playerid][Car] = CreateVehicle(411, X, Y, Z, A, -1, -1, 60);
		PutPlayerInVehicle(playerid, PlayerInfo[playerid][Car], 0);

		return 1;
	}
	return 1;
}

dcmd_fixme(playerid, params[])
{
  #pragma unused params
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
		  RepairVehicle(GetPlayerVehicleID(playerid));
		  SendClientMessage(playerid, COLOR_LIGHTGREEN, "You have fixed your vehicle");
		}
		return 1;
	}
	return 1;
}

dcmd_fix(playerid, params[])
{
  if(PlayerInfo[playerid][Level] >= 1 || IsPlayerAdmin(playerid))
	{
	  new tmp[256], Index;
		tmp = strtok(params,Index);

		if(!strlen(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /fix [playerid]");

		new kohde;
		kohde = strval(tmp);

		if(!IsPlayerConnected(kohde)) return SendClientMessage(playerid, COLOR_RED, "Incorrect ID, please check target players ID");

    if(IsPlayerInAnyVehicle(kohde))
		{
			RepairVehicle(GetPlayerVehicleID(kohde));
			new string[128];
			format(string, sizeof(string), "You have fixed %s's vehicle", PlayerName(kohde));
			
			new string2[128];
			format(string2, sizeof(string2), "Adminstrator %s fixed your vehicle", PlayerName(playerid));
		}

		return 1;
	}
	return 1;

}
//------------------------------------------------------------------------------



//------------------------------------------------------------------------------


  	


public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/adminpravila", cmdtext, true, 10) == 0)
	{
    if(PlayerInfo[playerid][Level] >= 1)

	  SendClientMessage(playerid, 0x33AA33AA, "Pravila za admine, ako ih se neces pridrzavati dobit ces DEMODE!");
	  SendClientMessage(playerid, COLOR_WHITE, "*********************************************");
	  SendClientMessage(playerid, 0x33AA33AA, "Nemoj koristiti admin komande u svoju privatnu svrhu.");
	  SendClientMessage(playerid, 0x33AA33AA, "Kada kickas, banas, jaila-s, freeza-s, warna-s stavi DOBAR razlog.");
  	  SendClientMessage(playerid, 0x33AA33AA, "Nebudi bahat prema igracima nego im pomazi koliko god znas i mozes.");
  	  SendClientMessage(playerid, 0x33AA33AA, "Pokusaj zadrzati i zabaviti igrace.");
  	  SendClientMessage(playerid, 0x33AA33AA, "Pokusaj odrzavati /pravila na serveru.");
  	  SendClientMessage(playerid, 0x33AA33AA, "Nikada ne otkrivaj da si ti admin, ako bas moras onda reci ali da sto manje igraca sazna.");
  	  SendClientMessage(playerid, 0x33AA33AA, "Dolazi redovno na server.");
  	  SendClientMessage(playerid, COLOR_WHITE, "*********************************************");

    return 1;
}

  dcmd(changepassword, 14, cmdtext);
  
  dcmd(setlevel, 8, cmdtext);
  dcmd(kick, 4, cmdtext);
  dcmd(ban, 3, cmdtext);
  dcmd(freeze, 6, cmdtext);
  dcmd(unfreeze, 8, cmdtext);
  dcmd(jail, 4, cmdtext);
  dcmd(unjail, 6, cmdtext);
  dcmd(warn, 4, cmdtext);
  dcmd(disarm, 6, cmdtext);
  dcmd(userinfo, 8, cmdtext);
  dcmd(goto, 4, cmdtext);
  dcmd(get, 3, cmdtext);
  
  dcmd(car, 3, cmdtext);
  dcmd(fixme, 5, cmdtext);
  dcmd(fix, 3, cmdtext);
  
  
  
  	if (strcmp("/ah", cmdtext, true, 10) == 0)
	{
	  if(PlayerInfo[playerid][Level] >= 1)
	  {
			SendClientMessage(playerid, COLOR_GREY, "Pomoc za admine!");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "*********************************************");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "/adminpravila /kick /ban /setlevel	/givecash /jail");
			SendClientMessage(playerid, COLOR_LIGHTGREEN, "	/freeze	/goto /get /userinfo /disarm /warn /car");
    	SendClientMessage(playerid, COLOR_LIGHTGREEN, "	/fixme /fix");
    	SendClientMessage(playerid, COLOR_LIGHTGREEN, "*********************************************");
			return 1;
		}
		return 1;
	}
	return 0;
}
//------------------------------------------------------------------------------


//------------------------------------------------------------------------------

public OnPlayerDeath(playerid, killerid, reason)
{
  PlayerInfo[playerid][Spawned] = 0;
	return 1;
}
//------------------------------------------------------------------------------
public OnPlayerSelectedMenuRow(playerid, row)
{
	return 1;
}

//------------------------------------------------------------------------------
forward MessageToAdmins(color,const string[]);
public MessageToAdmins(color,const string[])
{
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i) == 1) if (PlayerInfo[i][Level] >= 1) SendClientMessage(i, color, string);
	}
	return 1;
}
Reply
#4

We don't need the whole script you know...
Reply
#5

Quote:
Originally Posted by SloProKiller
We don't need the whole script you know...
i know i just make sure you can help me!
Reply
#6

Nah seriously... print out the respective lines necessary and not your whole script...
Reply
#7

Things you should post:

1. dcmd_mute
2. OnPlayerText

Leave out the rest, if it's not necassary (no actual parts of mute-command included).

#Added#: And if you actually want to post a big part of code, use pastebin...
Reply
#8

tnx to all, i fix srry for spaming i will ask moderator to delete all my post here...
Reply
#9

Quote:
Originally Posted by ExtremePower
tnx to all, i fix srry for spaming i will ask moderator to delete all my post here...
Or you post the sollution and everybody's happy.
Reply
#10

JAdmin is made by me, and that sure is not how it should work.
I'll fix the bug and it should work in next version.
Ty for telling about bug.
I'll contact you when i have fixed that bug.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)