Problem

Započeo Bilsen_Jahjagic, Mart 15, 2013, 22:27:14 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Bilsen_Jahjagic

Skripta koju koristim: FS:RP
Detaljan opis problema: Skinuo sam ovaj DM event i sve sam sredio samo ne mogu da napravim da se pomocu neke komande startdm stavlja na 0 i na 1 molim vas pomozite mi i da se pritom ispisuje poruka igracu
//==============================================================================
//                         Team Deathmatch Sys. v1.0 by Snich !

//==============================================================================
// INFO: System se sastoji od dvije baze sa full sredjenom mapom.
//       Postoje dva tima Teroristi i Vojnici sa nedalekim pristanistima.
//       System je u beta fazi te su greske moguce!
//       Ne brisite creditse i ne predstavljajte ovu filterskriptu svojom!

//==============================================================================
//                                SCRIPTER: Snich
//                                 MAPPER: Snich
//==============================================================================


//                              Includes
//==============================================================================
#include <a_samp>
#include <streamer>

//                              Defines
//==============================================================================
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x9EC73DAA
#define TEAM_HIT_COLOR 0xFFFFFF00
#define COLOR_LIGHTRED 0xFF6347AA
#define TDM_Dialog 0

//                              Variables
//==============================================================================
new Snich_DMEvent[MAX_PLAYERS];
new OdredjenTim[MAX_PLAYERS];
new PlayerInfo[MAX_PLAYERS];
new pAdmin[MAX_PLAYERS];
new startdm = 20;
new TERORISTI_VOZILA[9];
new VOJNICI_VOZILA[24];

//                              OnFilterScriptInit
//==============================================================================
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Team Deathmatch by Snich");
	print("--------------------------------------\n");
	
	//Teroristi vozila -
	TERORISTI_VOZILA[0] = AddStaticVehicleEx(470,-533.59997559,2558.50000000,53.50000000,270.00000000,-1,-1,15); //Patriot
	TERORISTI_VOZILA[1] = AddStaticVehicleEx(470,-533.40002441,2565.69995117,53.50000000,270.00000000,-1,-1,15); //Patriot
	TERORISTI_VOZILA[2] = AddStaticVehicleEx(470,-533.20001221,2573.19995117,53.50000000,270.00000000,-1,-1,15); //Patriot
	TERORISTI_VOZILA[3] = AddStaticVehicleEx(470,-533.09997559,2580.60009766,53.50000000,270.00000000,-1,-1,15); //Patriot
	TERORISTI_VOZILA[4] = AddStaticVehicleEx(425,-517.40002441,2559.00000000,54.29999924,90.00000000,-1,-1,15); //Hunter
	TERORISTI_VOZILA[5] = AddStaticVehicleEx(425,-517.09997559,2569.50000000,54.29999924,90.00000000,-1,-1,15); //Hunter
	TERORISTI_VOZILA[6] = AddStaticVehicleEx(425,-516.90002441,2579.69995117,54.29999924,90.00000000,-1,-1,15); //Hunter
	TERORISTI_VOZILA[7] = AddStaticVehicleEx(432,-513.79998779,2615.30004883,53.50000000,177.99969482,-1,-1,15); //Rhino
	TERORISTI_VOZILA[8] = AddStaticVehicleEx(432,-533.00000000,2615.00000000,53.50000000,177.99499512,-1,-1,15); //Rhino
	
	//Vojnici vozila -
	VOJNICI_VOZILA[0] = AddStaticVehicleEx(432,321.60000610,2541.00000000,16.89999962,180.00000000,-1,-1,15); //Rhino
	VOJNICI_VOZILA[1] = AddStaticVehicleEx(432,328.50000000,2541.10009766,16.89999962,180.00000000,-1,-1,15); //Rhino
	VOJNICI_VOZILA[2] = AddStaticVehicleEx(432,286.70001221,2541.50000000,16.89999962,180.00000000,-1,-1,15); //Rhino
	VOJNICI_VOZILA[3] = AddStaticVehicleEx(432,293.70001221,2541.69995117,16.89999962,180.00000000,-1,-1,15); //Rhino
	VOJNICI_VOZILA[4] = AddStaticVehicleEx(433,326.39999390,2510.10009766,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[5] = AddStaticVehicleEx(433,317.29998779,2510.10009766,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[6] = AddStaticVehicleEx(433,308.29998779,2509.89990234,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[7] = AddStaticVehicleEx(433,277.00000000,2509.89990234,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[8] = AddStaticVehicleEx(433,267.70001221,2509.89990234,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[9] = AddStaticVehicleEx(433,258.60000610,2509.89990234,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[10] = AddStaticVehicleEx(433,249.60000610,2510.00000000,17.10000038,0.00000000,-1,-1,15); //Barracks
	VOJNICI_VOZILA[11] = AddStaticVehicleEx(425,345.79998779,2542.60009766,17.60000038,0.00000000,-1,-1,15); //Hunter
	VOJNICI_VOZILA[12] = AddStaticVehicleEx(425,356.20001221,2542.69995117,17.60000038,0.00000000,-1,-1,15); //Hunter
	VOJNICI_VOZILA[13] = AddStaticVehicleEx(425,366.50000000,2542.89990234,17.39999962,0.00000000,-1,-1,15); //Hunter
	VOJNICI_VOZILA[14] = AddStaticVehicleEx(425,376.89999390,2543.00000000,17.39999962,0.00000000,-1,-1,15); //Hunter
	VOJNICI_VOZILA[15] = AddStaticVehicleEx(520,380.89999390,2515.00000000,17.79999924,0.00000000,-1,-1,15); //Hydra
	VOJNICI_VOZILA[16] = AddStaticVehicleEx(520,363.10000610,2514.80004883,17.79999924,0.00000000,-1,-1,15); //Hydra
	VOJNICI_VOZILA[17] = AddStaticVehicleEx(520,344.70001221,2514.80004883,17.79999924,0.00000000,-1,-1,15); //Hydra
	VOJNICI_VOZILA[18] = AddStaticVehicleEx(470,273.79998779,2530.80004883,16.89999962,179.99963379,-1,-1,15); //Patriot
	VOJNICI_VOZILA[19] = AddStaticVehicleEx(470,268.50000000,2530.80004883,16.89999962,179.99450684,-1,-1,15); //Patriot
	VOJNICI_VOZILA[20] = AddStaticVehicleEx(470,263.50000000,2530.80004883,16.89999962,179.99450684,-1,-1,15); //Patriot
	VOJNICI_VOZILA[21] = AddStaticVehicleEx(470,258.20001221,2530.89990234,16.89999962,179.99450684,-1,-1,15); //Patriot
	VOJNICI_VOZILA[22] = AddStaticVehicleEx(470,252.89999390,2530.89990234,16.89999962,179.99450684,-1,-1,15); //Patriot
	VOJNICI_VOZILA[23] = AddStaticVehicleEx(470,247.50000000,2530.80004883,16.89999962,179.99450684,-1,-1,15); //Patriot
	
	//Vojnici baza -
	CreateDynamicObject(8210,253.10000610,2556.69995117,18.70000076,0.00000000,0.00000000,180.00000000); //object(vgsselecfence12) (1)
	CreateDynamicObject(8210,308.70001221,2556.69995117,18.70000076,0.00000000,0.00000000,179.99450684); //object(vgsselecfence12) (2)
	CreateDynamicObject(8210,364.29998779,2556.69995117,18.70000076,0.00000000,0.00000000,179.99450684); //object(vgsselecfence12) (3)
	CreateDynamicObject(8210,391.89999390,2529.10009766,18.70000076,0.00000000,0.00000000,89.99450684); //object(vgsselecfence12) (4)
	CreateDynamicObject(8210,364.20001221,2501.60009766,18.60000038,0.00000000,0.00000000,359.99450684); //object(vgsselecfence12) (5)
	CreateDynamicObject(8210,308.60000610,2501.60009766,18.60000038,0.00000000,0.00000000,359.98901367); //object(vgsselecfence12) (6)
	CreateDynamicObject(8210,253.00000000,2501.60009766,18.60000038,0.00000000,0.00000000,359.98901367); //object(vgsselecfence12) (7)
	CreateDynamicObject(8650,225.69999695,2541.80004883,16.79999924,0.00000000,0.00000000,0.00000000); //object(shbbyhswall06_lvs) (1)
	CreateDynamicObject(8650,225.69999695,2541.80004883,19.00000000,0.00000000,0.00000000,0.00000000); //object(shbbyhswall06_lvs) (2)
	CreateDynamicObject(8650,225.69999695,2541.80004883,21.20000076,0.00000000,0.00000000,0.00000000); //object(shbbyhswall06_lvs) (3)
	CreateDynamicObject(3749,226.69999695,2511.00000000,21.39999962,0.00000000,0.00000000,270.00000000); //object(clubgate01_lax) (1)
	CreateDynamicObject(3475,225.89999390,2523.50000000,19.00000000,0.00000000,0.00000000,0.00000000); //object(vgsn_fncelec_pst) (1)
	CreateDynamicObject(3475,225.89999390,2523.50000000,14.50000000,0.00000000,0.00000000,0.00000000); //object(vgsn_fncelec_pst) (3)
	CreateDynamicObject(7981,376.29998779,2514.60009766,10.89999962,0.00000000,0.00000000,0.00000000); //object(smallradar02_lvs) (1)
	CreateDynamicObject(7981,358.29998779,2514.39990234,10.89999962,0.00000000,0.00000000,0.00000000); //object(smallradar02_lvs) (2)
	CreateDynamicObject(7981,340.00000000,2514.30004883,10.89999962,0.00000000,0.00000000,0.00000000); //object(smallradar02_lvs) (3)
	CreateDynamicObject(3279,387.60000610,2552.10009766,15.60000038,0.00000000,0.00000000,268.00000000); //object(a51_spottower) (1)
	CreateDynamicObject(3279,308.50000000,2552.10009766,15.80000019,0.00000000,0.00000000,269.99499512); //object(a51_spottower) (2)
	CreateDynamicObject(3279,240.60000610,2551.80004883,15.80000019,0.00000000,0.00000000,269.99450684); //object(a51_spottower) (3)
	CreateDynamicObject(3279,292.50000000,2506.30004883,15.50000000,0.00000000,0.00000000,89.99450684); //object(a51_spottower) (4)
	
	//Teroristi baza -
	CreateDynamicObject(987,-542.59997559,2547.89990234,52.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (1)
	CreateDynamicObject(987,-530.59997559,2547.89990234,52.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (2)
	CreateDynamicObject(987,-518.59997559,2547.89990234,52.40000153,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (3)
	CreateDynamicObject(987,-506.70001221,2548.00000000,52.50000000,0.00000000,0.00000000,88.00000000); //object(elecfence_bar) (4)
	CreateDynamicObject(987,-506.29998779,2560.00000000,52.50000000,0.00000000,0.00000000,87.99499512); //object(elecfence_bar) (5)
	CreateDynamicObject(987,-505.89999390,2571.89990234,52.50000000,0.00000000,0.00000000,87.99499512); //object(elecfence_bar) (6)
	CreateDynamicObject(987,-505.39999390,2602.30004883,52.50000000,0.00000000,0.00000000,87.99499512); //object(elecfence_bar) (7)
	CreateDynamicObject(987,-505.00000000,2614.19995117,52.50000000,0.00000000,0.00000000,87.99499512); //object(elecfence_bar) (8)
	CreateDynamicObject(987,-504.60000610,2626.10009766,52.50000000,0.00000000,0.00000000,87.99499512); //object(elecfence_bar) (9)
	CreateDynamicObject(987,-504.10000610,2638.00000000,52.50000000,0.00000000,0.00000000,179.99499512); //object(elecfence_bar) (10)
	CreateDynamicObject(987,-516.09997559,2638.10009766,52.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (11)
	CreateDynamicObject(987,-528.09997559,2638.10009766,52.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (12)
	CreateDynamicObject(987,-540.00000000,2638.10009766,52.40000153,0.00000000,0.00000000,267.99450684); //object(elecfence_bar) (13)
	CreateDynamicObject(987,-540.40002441,2626.10009766,52.40000153,0.00000000,0.00000000,267.98950195); //object(elecfence_bar) (14)
	CreateDynamicObject(987,-540.79998779,2614.10009766,52.40000153,0.00000000,0.00000000,267.98950195); //object(elecfence_bar) (15)
	CreateDynamicObject(987,-542.09997559,2559.80004883,52.40000153,0.00000000,0.00000000,267.98950195); //object(elecfence_bar) (16)
	CreateDynamicObject(987,-541.70001221,2571.80004883,52.40000153,0.00000000,0.00000000,267.98950195); //object(elecfence_bar) (17)
	CreateDynamicObject(987,-541.29998779,2583.69995117,52.40000153,0.00000000,0.00000000,267.98950195); //object(elecfence_bar) (18)
	CreateDynamicObject(987,-541.29998779,2602.10009766,52.40000153,0.00000000,0.00000000,179.99450684); //object(elecfence_bar) (20)
	CreateDynamicObject(987,-553.42004395,2583.62011719,52.29999924,0.00000000,0.00000000,0.00000000); //object(elecfence_bar) (21)
	CreateDynamicObject(17324,-532.50000000,2617.80004883,52.40000153,0.00000000,0.00000000,359.00000000); //object(cw_combbarn) (1)
	CreateDynamicObject(17324,-514.59997559,2617.80004883,52.40000153,0.00000000,0.00000000,359.00000000); //object(cw_combbarn) (2)
	CreateDynamicObject(3749,-505.70001221,2592.89990234,58.29999924,0.00000000,0.00000000,90.00000000); //object(clubgate01_lax) (1)
	return 1;
}

//                              OnPlayerConnect
//==============================================================================
public OnPlayerConnect(playerid)
{
    Snich_DMEvent[playerid]=  0;
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    if (Snich_DMEvent[playerid] == 1)
	{
		GameTextForPlayer(playerid, "~w~Spawnani ste u ~g~Vojnu Bazu~w~.", 3000, 4);
		SetPlayerColor(playerid, COLOR_GREEN);
		ResetPlayerWeapons(playerid);
		GivePlayerWeapon(playerid, 30, 1000);
		GivePlayerWeapon(playerid, 31, 1000);
		GivePlayerWeapon(playerid, 34, 1000);
		GivePlayerWeapon(playerid, 24, 1000);
		GivePlayerWeapon(playerid, 25, 1000);
		GivePlayerWeapon(playerid, 16, 500);
		GivePlayerWeapon(playerid, 17, 500);
		SetPlayerTeam(playerid, 1);
		SetPlayerPos(playerid, 307.8633,2535.5527,16.8162);
		SetPlayerFacingAngle(playerid, 180);
		SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
		SetPlayerSkin(playerid, 287);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		Snich_DMEvent[playerid]= 1;
		OdredjenTim[playerid]= 1;
		TogglePlayerControllable(playerid,1);
		SetPlayerInterior(playerid, 0);
	}
	if (Snich_DMEvent[playerid] == 2)
	{
		GameTextForPlayer(playerid, "~w~Spawnani ste u ~r~Teroristicku Bazu~w~.", 3000, 4);
		SetPlayerColor(playerid, COLOR_LIGHTRED);
		ResetPlayerWeapons(playerid);
		GivePlayerWeapon(playerid, 30, 1000);
		GivePlayerWeapon(playerid, 31, 1000);
		GivePlayerWeapon(playerid, 34, 1000);
		GivePlayerWeapon(playerid, 24, 1000);
		GivePlayerWeapon(playerid, 25, 1000);
		GivePlayerWeapon(playerid, 16, 500);
		GivePlayerWeapon(playerid, 17, 500);
		SetPlayerTeam(playerid, 2);
		SetPlayerPos(playerid, -549.6487,2593.7300,53.9348);
		SetPlayerFacingAngle(playerid, 270);
		SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
		SetPlayerSkin(playerid, 179);
		SetPlayerHealth(playerid, 100);
		SetPlayerArmour(playerid, 100);
		Snich_DMEvent[playerid] = 1;
		OdredjenTim[playerid]= 2;
		TogglePlayerControllable(playerid, 1);
		SetPlayerInterior(playerid, 0);
	}
	return 1;
}

//                              OnPlayerCommandText
//==============================================================================
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/deathmatch", true) == 0 || strcmp(cmdtext, "/dm", true) == 0)
	{
		ShowPlayerDialog(playerid, TDM_Dialog, DIALOG_STYLE_LIST,"> TDM < Izaberi svoj tim!","\t\t> Vojska <\n\t\t> Teroristi <\n\t\tNapusti TDM","Izaberi", "Odustani");
		return 1;
	}
	return 0;
}

//                              OnDialogResponse
//==============================================================================
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == TDM_Dialog)
	{
		if(response)
		{
			if(listitem == 0)
			{
				if (OdredjenTim[playerid] == 1 || OdredjenTim[playerid] == 2)
				{
                    SendClientMessage(playerid, COLOR_GREY, "{C3C3C3}Ukoliko zelite promijeniti tim, morate izaci sa Team Deathmatch-a.");
                    return 1;
    			}
    			if(startdm != 1)
					{
					    SendClientMessage(playerid,COLOR_GREEN,"[GRESKA] DM event jos nije poceo!");
					    return 1;
					}
					else
				if(startdm != 0)
				if (OdredjenTim[playerid] != 1)
				{
					SendClientMessage(playerid, COLOR_GREY, "{C3C3C3}Pridruzili ste se Vojnom timu. Eliminisite sve Teroriste!");
					SetPlayerColor(playerid, COLOR_GREEN);
					ResetPlayerWeapons(playerid);
					GivePlayerWeapon(playerid, 30, 1000);
					GivePlayerWeapon(playerid, 31, 1000);
					GivePlayerWeapon(playerid, 34, 1000);
					GivePlayerWeapon(playerid, 24, 1000);
					GivePlayerWeapon(playerid, 25, 1000);
					GivePlayerWeapon(playerid, 16, 500);
					GivePlayerWeapon(playerid, 17, 500);
					SetPlayerTeam(playerid, 1);
					SetPlayerPos(playerid, 307.8633,2535.5527,16.8162);
					SetPlayerFacingAngle(playerid, 180);
					SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
					SetPlayerSkin(playerid, 287);
					SetPlayerHealth(playerid, 100);
					SetPlayerArmour(playerid, 100);
					Snich_DMEvent[playerid]= 1;
					OdredjenTim[playerid]= 1;
					TogglePlayerControllable(playerid,1);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "{F81414}>> [Error]: {C3C3C3}Vec ste u Vojnom timu!");
				}
			}
			if(listitem == 1)
			{
				if (OdredjenTim[playerid] == 1 || OdredjenTim[playerid] == 2)
				{
                    SendClientMessage(playerid, COLOR_GREY, "{F81414}>> [Error]: {C3C3C3}Ukoliko zelite promijeniti tim, morate izaci sa Team Deathmatch-a.");
                    return 1;
    			}
				if (OdredjenTim[playerid] != 2)
				{
    			if(startdm != 1)
					{
					    SendClientMessage(playerid,COLOR_GREEN,"[GRESKA] DM event jos nije poceo!");
					    return 1;
					}
					else
				    if(startdm != 0)
					SendClientMessage(playerid, COLOR_GREY, "{C3C3C3}Pridruzili ste se Teroristickom timu. Eliminisite sve Vojnike!");
					ResetPlayerWeapons(playerid);
					GivePlayerWeapon(playerid, 30, 1000);
					GivePlayerWeapon(playerid, 31, 1000);
					GivePlayerWeapon(playerid, 34, 1000);
					GivePlayerWeapon(playerid, 24, 1000);
					GivePlayerWeapon(playerid, 25, 1000);
					GivePlayerWeapon(playerid, 16, 500);
					GivePlayerWeapon(playerid, 17, 500);
					SetPlayerTeam(playerid, 2);
					SetPlayerPos(playerid, -549.6487,2593.7300,53.9348);
					SetPlayerFacingAngle(playerid, 270);
					SetPVarInt(playerid,"Skin",GetPlayerSkin(playerid));
					SetPlayerSkin(playerid, 179);
					SetPlayerHealth(playerid, 100);
					SetPlayerArmour(playerid, 100);
					SetPlayerColor(playerid, COLOR_LIGHTRED);
					Snich_DMEvent[playerid] = 1;
					OdredjenTim[playerid]= 2;
					TogglePlayerControllable(playerid, 1);
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "{F81414}>> [Error]: {C3C3C3}Vec ste u Teroristickom timu!");
				}
			}
			if(listitem == 2)
			{
			    if (Snich_DMEvent[playerid] == 1)
				{
					SetPlayerVirtualWorld(playerid, 0);
		    		SetPlayerPos(playerid, 1191.8240,-923.8575,43.1066);
					SetPlayerTeam(playerid, -1);
					SetPlayerSkin(playerid,GetPVarInt(playerid,"Skin"));
					SetPlayerColor(playerid,TEAM_HIT_COLOR);
					ResetPlayerWeapons(playerid);
					OdredjenTim[playerid]= 0;
					Snich_DMEvent[playerid] = 0;
					SendClientMessage(playerid, COLOR_GREY, "{6EF83C}>> [Succes]: {C3C3C3}Napustili ste Team Deathmatch.");
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "{F81414}>> [Error]: {C3C3C3}Niste na Team Deathmatch-u.");
				}
			}
		}
	}
	return 1;
}
//                              Stock's
//==============================================================================
stock TERORISTI_VOZILA_STOCK(carid)
{
	if(carid == TERORISTI_VOZILA[0] || carid == TERORISTI_VOZILA[1] || carid == TERORISTI_VOZILA[2] || carid == TERORISTI_VOZILA[3] || carid == TERORISTI_VOZILA[4] || carid == TERORISTI_VOZILA[5] || carid == TERORISTI_VOZILA[6] || carid == TERORISTI_VOZILA[7] || carid == TERORISTI_VOZILA[8])
	{
		return 1;
	}
	return 0;
}

stock VOJNICI_VOZILA_STOCK(carid)
{
	if(carid == VOJNICI_VOZILA[0] || carid == VOJNICI_VOZILA[1] || carid == VOJNICI_VOZILA[2] || carid == VOJNICI_VOZILA[3] || carid == VOJNICI_VOZILA[4] || carid == VOJNICI_VOZILA[5] || carid == VOJNICI_VOZILA[6] || carid == VOJNICI_VOZILA[7] || carid == VOJNICI_VOZILA[8] || carid == VOJNICI_VOZILA[9] || carid == VOJNICI_VOZILA[10] || carid == VOJNICI_VOZILA[11] || carid == VOJNICI_VOZILA[12] || carid == VOJNICI_VOZILA[13] || carid == VOJNICI_VOZILA[14] || carid == VOJNICI_VOZILA[15] || carid == VOJNICI_VOZILA[16] || carid == VOJNICI_VOZILA[17] || carid == VOJNICI_VOZILA[18] || carid == VOJNICI_VOZILA[19] || carid == VOJNICI_VOZILA[20] || carid == VOJNICI_VOZILA[21] || carid == VOJNICI_VOZILA[22] || carid == VOJNICI_VOZILA[23])
	{
		return 1;
	}
	return 0;
}

//=================================== KRAJ ===================

dio skripte:
Neke slike/video:

napravis variablu
new startdm;

OnGameModeInit/OnFilterScriptInit
teamdm = 0;

cmd
if(strcmp(cmdtext, "/dmstart", true) == 0)
   {
      teamdm = 1;
      SendClientMessage(playerid, -1, "Startali ste Team DM");
      return 1;
   }
if(strcmp(cmdtext, "/dmend", true) == 0)
   {
      teamdm = 0;
      SendClientMessage(playerid, -1, "Ugasili ste Team DM");
      return 1;
   }


e sada pod cmd /dm mozes napraviti proveru
if(teamdm == 0) return SendClientMessage(playerid, -1, "Team DM nije startan");

Bilsen_Jahjagic

sledeci erori
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(201) : warning 217: loose indentation
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(203) : error 010: invalid function or declaration
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(207) : error 010: invalid function or declaration
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(209) : error 010: invalid function or declaration
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(213) : error 010: invalid function or declaration
C:\Users\Seven\Desktop\fs\SnichTDM\TDM.pwn(282) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

red 203
if(strcmp(cmdtext, "/dmstart", true) == 0)

red 207
      return 1;

red 209
if(strcmp(cmdtext, "/dmend", true) == 0)

red 213
      return 1;

Bilsen_Jahjagic

Zar je moguce da niko ne zna

Bilsen_Jahjagic


Bilsen_Jahjagic

Oce mi neko pomoc ,cekam vec 2 dana

uploadaj cijeli fs na pastebin pa ti tako netko moze pomoci...

Bilsen_Jahjagic

Evo tu nista nisam ubaciovao vi samo da mi napravite da se pomocu neke komande mijenja startdm na 0 i na 1 i da to mogu samo admini odredjeni lvl
http://pastebin.com/sJm3itU4