Jump to content

Question

Posted

Salut am si eu o problema cand vreau sa compilez imi da eraoare

Acesta este scriptul:[pawn] /*          ###    *  #####    *  ##*##    #    #          #      #  #  #####  ####    #

#  #  #  #        #    #      # #    #          # #    ##  #  #      #      #

#  #  #  #  ##    #    #    #***#  #        #***#    # # #  #  ##  #***    #

####  #  #####    #    #    #    #  #####    #    #  #  #  #####  ####    #####

                  ###        #        ###*

                  #  #      # #        #  *

                #**      #***#      #***#

                  #  #    #    #      # #

                  #**    #      #    #  #

*/

#define FILTERSCRIPT

#include <a_samp>

new lcsevent = 0;

new lcsc1;

new lcsc2;

new lcsc3;

new lcsc4;

new lcsc5;

new lcsc6;

new lcsc7;

new lcsc8;

new lcsc9;

new lcsc10;

#if defined FILTERSCRIPT

public OnFilterScriptInit()

{

    CreateObject(8172, -440.37, 3173.10, 500.00,  0.00, 0.00, 0.00);

CreateObject(8172, -480.04, 3173.09, 500.00,  0.00, 0.00, 0.00);

CreateObject(3524, -499.04, 3252.73, 503.00,  0.00, 0.00, 0.00);

CreateObject(3524, -421.09, 3252.58, 503.00,  0.00, 0.00, -25.00);

CreateObject(3524, -421.19, 3094.76, 503.00,  0.00, 0.00, 229.00);

CreateObject(3524, -499.53, 3093.28, 503.00,  0.00, 0.00, 142.00);

CreateObject(8483, -460.16, 3186.73, 494.00,  0.00, -90.00, -90.00);

CreateObject(3268, -460.90, 3102.36, 499.97,  0.00, 0.00, -90.00);

CreateObject(11245, -447.50, 3094.11, 502.00,  0.00, -60.00, 127.00);

CreateObject(11245, -474.23, 3093.96, 502.00,  0.00, -60.00, 40.00);

CreateObject(18647, -463.61, 3105.07, 500.00,  0.00, 0.00, 0.00);

CreateObject(18647, -462.65, 3104.10, 500.00,  0.00, 0.00, 90.00);

CreateObject(18647, -461.26, 3105.10, 500.00,  0.00, 0.00, 0.00);

CreateObject(18647, -460.28, 3106.09, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -460.28, 3104.12, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -457.53, 3106.08, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -457.76, 3105.31, 499.98,  0.00, 0.00, 45.00);

CreateObject(18647, -458.02, 3104.31, 499.98,  0.00, 0.00, 105.00);

CreateObject(18761, -461.02, 3112.47, 499.98,  0.00, 0.00, 0.00);

CreateObject(13667, -461.01, 3114.19, 520.00,  0.00, 0.00, 90.00);

CreateObject(18785, -430.36, 3102.39, 500.00,  0.00, 0.00, 0.00);

CreateObject(18785, -435.95, 3102.39, 500.00,  0.00, 0.00, 0.00);

CreateObject(18785, -485.87, 3102.39, 500.00,  0.00, 0.00, 0.00);

CreateObject(18785, -489.81, 3102.39, 500.00,  0.00, 0.00, 0.00);

CreateObject(18066, -460.11, 3106.51, 499.96,  -90.00, 0.00, 0.00);

CreateObject(8172, -440.37, 3173.10, 500.00,  0.00, 0.00, 0.00);

CreateObject(8172, -480.04, 3173.09, 500.00,  0.00, 0.00, 0.00);

CreateObject(3524, -499.04, 3252.73, 503.00,  0.00, 0.00, 0.00);

CreateObject(3524, -421.09, 3252.58, 503.00,  0.00, 0.00, -25.00);

CreateObject(3524, -421.19, 3094.76, 503.00,  0.00, 0.00, 229.00);

CreateObject(3524, -496.38, 3093.62, 503.00,  0.00, 0.00, 142.00);

CreateObject(8483, -460.16, 3186.73, 494.00,  0.00, -90.00, -90.00);

CreateObject(3268, -460.90, 3102.36, 499.97,  0.00, 0.00, -90.00);

CreateObject(11245, -447.50, 3094.11, 502.00,  0.00, -60.00, 127.00);

CreateObject(11245, -474.23, 3093.96, 502.00,  0.00, -60.00, 40.00);

CreateObject(18647, -463.61, 3105.07, 500.00,  0.00, 0.00, 0.00);

CreateObject(18647, -462.65, 3104.10, 500.00,  0.00, 0.00, 90.00);

CreateObject(18647, -461.26, 3105.10, 500.00,  0.00, 0.00, 0.00);

CreateObject(18647, -460.28, 3106.09, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -460.28, 3104.12, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -457.53, 3106.08, 499.98,  0.00, 0.00, 90.00);

CreateObject(18647, -457.76, 3105.31, 499.98,  0.00, 0.00, 45.00);

CreateObject(18647, -458.02, 3104.31, 499.98,  0.00, 0.00, 105.00);

CreateObject(18761, -461.02, 3112.47, 499.98,  0.00, 0.00, 0.00);

CreateObject(13667, -461.01, 3114.19, 520.00,  0.00, 0.00, 90.00);

}

print("\n--------------------------------------");

print(" DiGiTaL_LCS");

print("--------------------------------------\n");

}

public OnFilterScriptExit()

{

return 1;

}

public OnPlayerCommandText(playerid, cmdtext[])

{

if(strcmp(cmd, "/lcsannc", true) == 0)

{

if(PlayerInfo[playerid][pAdmin] < 1)

{

SendClientMessage(playerid, COLOR_NICERED, "Nu esti autorizat sa folosesti aceasta comanda!";

return 1;

}

SendClientMessageToAll(TEAM_VAGOS_COLOR, "Eventul LCS a fost pornit! Scrie /joinlcs pentru a concura si tu!";

}

return 1;

}

if(strcmp(cmd, "/lcsjoin", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if lcsevent == 1)

        {

            if (GetPlayerState(playerid) == 2)

            {

                SendClientMessage(playerid, COLOR_NICERED, "Iesi din masina si incearca iar!

                return 1;

}

if(PlayerInfo[playerid][pJailed] == 1)

{

    SendClientMessage(playerid,COLOR_NICERED,"Esti la parnaie, nu poti concura!

    return 1;

}

if(WantedLevel[playerid] >= 1)

{

SendClientMessage(playerid,COLOR_NICERED,"Esti cautat de politie, n-ai timp de LCS.

return 1;

}

if(PlayerZTied[playerid] > 0)

{

    SendClientMessage(playerid, COLOR_NICERED, "Esti legat, nu poti concura la Last Car Standing!

    return 1;

}

else

{

    SetPlayerPos(playerid,-460.3275,3103.0244,500.9844,0.0285);

}

else

{

    SendClientMessage(playerid, COLOR_GRAD1, "Eventul LCS nu e activat!");

}

}

return 1;

}

      if(strcmp(cmd, "/lcs", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

    if (PlayerInfo[playerid][pAdmin] >= 2 && (devent == 0))

    {

lcsevent = 1;

BroadCast(COLOR_NICERED, " Eventul LCS a fost activat de un Admin! Scrie /joinlcs pentru a concura!");

}

else if (PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 1))

{

    lcsevent = 0;

    BroadCast(COLOR_THEMAFIA, " Eventul LCS a fost oprit de un Admin!");

}

else

{

    SendClientMessage(playerid, COLOR_NICERED, "Nu ai voie sa folosesti aceasta comanda, nu esti admin!");

}

}

}

}

}

return 1;

}

return 0;

}

//----------------------------CARS-------------------------------

lcsc1 = AddStaticVehicle(415,-448.2969,3096.9011,500.7604,358.3995,0,3); //

lcsc2 = AddStaticVehicle(415,-449.4069,3110.4045,500.7560,90.7424,0,3); //

lcsc3 = AddStaticVehicle(415,-449.7160,3106.0381,500.7593,89.4468,0,3); //

lcsc4 = AddStaticVehicle(541,-465.3029,3096.4758,500.6092,359.4644,0,3); //

lcsc5 = AddStaticVehicle(415,-451.7795,3096.2251,500.7593,357.0129,0,3); //

lcsc6 = AddStaticVehicle(415,-457.5237,3095.9136,500.7604,358.4154,0,3); //

lcsc7 = AddStaticVehicle(541,-472.2949,3110.2378,500.6090,271.0478,0,3); //

lcsc8 = AddStaticVehicle(541,-472.9049,3106.1006,500.6091,269.1479,0,3); //

lcsc9 = AddStaticVehicle(541,-473.6192,3095.7981,500.6091,359.0208,0,3); //

lcsc10 = AddStaticVehicle(541,-469.5145,3095.6216,500.6093,358.2925,0,3); //

//----------------------------CARS-------------------------------

#else

main()

{

print("\n----------------------------------");

print(" DiGiTaL_LCS");

print("----------------------------------\n");

}

#endif

Si acestea sunt erorile care mi le da cand dau compile:


  • C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(78) : error 021: symbol already defined: "print"
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(90) : error 017: undefined symbol "cmd"
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(92) : error 017: undefined symbol "PlayerInfo"
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(92) : warning 215: expression has no effect
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(92) : error 001: expected token: ";", but found "]"
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(92) : error 029: invalid expression, assumed zero
    C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(92) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


    6 Errors.[/pawn]

4 answers to this question

Recommended Posts

Posted
			#  #   #   #        #     #      # #    #      		    # #     ##  #   #       #       #
			#  #   #   #  ##    #     #     #***#   #      		   #***#    # # #   #  ##   #***    #
			####   #   #####    #     #    #     #  #####  		  #     #   #   #   #####   ####    #####

			           				         ###         #         ###*
			   				                 #  #       # #        #   *
			    				             #**       #***#       #***#
			   				                 #  #     #     #      # #
			  				                 #**     #       #     #   #
*/

#define FILTERSCRIPT
#include <a_samp>

new lcsevent = 0;
new lcsc1;
new lcsc2;
new lcsc3;
new lcsc4;
new lcsc5;
new lcsc6;
new lcsc7;
new lcsc8;
new lcsc9;
new lcsc10;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    CreateObject(8172, -440.37, 3173.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(8172, -480.04, 3173.09, 500.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -499.04, 3252.73, 503.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -421.09, 3252.58, 503.00,   0.00, 0.00, -25.00);
	CreateObject(3524, -421.19, 3094.76, 503.00,   0.00, 0.00, 229.00);
	CreateObject(3524, -499.53, 3093.28, 503.00,   0.00, 0.00, 142.00);
	CreateObject(8483, -460.16, 3186.73, 494.00,   0.00, -90.00, -90.00);
	CreateObject(3268, -460.90, 3102.36, 499.97,   0.00, 0.00, -90.00);
	CreateObject(11245, -447.50, 3094.11, 502.00,   0.00, -60.00, 127.00);
	CreateObject(11245, -474.23, 3093.96, 502.00,   0.00, -60.00, 40.00);
	CreateObject(18647, -463.61, 3105.07, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -462.65, 3104.10, 500.00,   0.00, 0.00, 90.00);
	CreateObject(18647, -461.26, 3105.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -460.28, 3106.09, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -460.28, 3104.12, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.53, 3106.08, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.76, 3105.31, 499.98,   0.00, 0.00, 45.00);
	CreateObject(18647, -458.02, 3104.31, 499.98,   0.00, 0.00, 105.00);
	CreateObject(18761, -461.02, 3112.47, 499.98,   0.00, 0.00, 0.00);
	CreateObject(13667, -461.01, 3114.19, 520.00,   0.00, 0.00, 90.00);
	CreateObject(18785, -430.36, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -435.95, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -485.87, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -489.81, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18066, -460.11, 3106.51, 499.96,   -90.00, 0.00, 0.00);
	CreateObject(8172, -440.37, 3173.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(8172, -480.04, 3173.09, 500.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -499.04, 3252.73, 503.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -421.09, 3252.58, 503.00,   0.00, 0.00, -25.00);
	CreateObject(3524, -421.19, 3094.76, 503.00,   0.00, 0.00, 229.00);
	CreateObject(3524, -496.38, 3093.62, 503.00,   0.00, 0.00, 142.00);
	CreateObject(8483, -460.16, 3186.73, 494.00,   0.00, -90.00, -90.00);
	CreateObject(3268, -460.90, 3102.36, 499.97,   0.00, 0.00, -90.00);
	CreateObject(11245, -447.50, 3094.11, 502.00,   0.00, -60.00, 127.00);
	CreateObject(11245, -474.23, 3093.96, 502.00,   0.00, -60.00, 40.00);
	CreateObject(18647, -463.61, 3105.07, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -462.65, 3104.10, 500.00,   0.00, 0.00, 90.00);
	CreateObject(18647, -461.26, 3105.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -460.28, 3106.09, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -460.28, 3104.12, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.53, 3106.08, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.76, 3105.31, 499.98,   0.00, 0.00, 45.00);
	CreateObject(18647, -458.02, 3104.31, 499.98,   0.00, 0.00, 105.00);
	CreateObject(18761, -461.02, 3112.47, 499.98,   0.00, 0.00, 0.00);
	CreateObject(13667, -461.01, 3114.19, 520.00,   0.00, 0.00, 90.00);

       lcsc1 = AddStaticVehicle(415,-448.2969,3096.9011,500.7604,358.3995,0,3); //
	lcsc2 = AddStaticVehicle(415,-449.4069,3110.4045,500.7560,90.7424,0,3); //
	lcsc3 = AddStaticVehicle(415,-449.7160,3106.0381,500.7593,89.4468,0,3); //
	lcsc4 = AddStaticVehicle(541,-465.3029,3096.4758,500.6092,359.4644,0,3); //
	lcsc5 = AddStaticVehicle(415,-451.7795,3096.2251,500.7593,357.0129,0,3); //
	lcsc6 = AddStaticVehicle(415,-457.5237,3095.9136,500.7604,358.4154,0,3); //
	lcsc7 = AddStaticVehicle(541,-472.2949,3110.2378,500.6090,271.0478,0,3); //
	lcsc8 = AddStaticVehicle(541,-472.9049,3106.1006,500.6091,269.1479,0,3); //
	lcsc9 = AddStaticVehicle(541,-473.6192,3095.7981,500.6091,359.0208,0,3); //
	lcsc10 = AddStaticVehicle(541,-469.5145,3095.6216,500.6093,358.2925,0,3); //

	print("\n--------------------------------------");
	print(" DiGiTaL_LCS");
	print("--------------------------------------\n");
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmd, "/lcsannc", true) == 0)
	{
		if(PlayerInfo[playerid][pAdmin] < 1)
		{
			SendClientMessage(playerid, COLOR_NICERED, "Nu esti autorizat sa folosesti aceasta comanda!";
			return 1;
		}
		SendClientMessageToAll(TEAM_VAGOS_COLOR, "Eventul LCS a fost pornit! Scrie /joinlcs pentru a concura si tu!";
	}
	return 1;
}

	if(strcmp(cmd, "/lcsjoin", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if lcsevent == 1)
	        {
	            if (GetPlayerState(playerid) == 2)
	            {
	                SendClientMessage(playerid, COLOR_NICERED, "Iesi din masina si incearca iar!
	                return 1;
				}
				if(PlayerInfo[playerid][pJailed] == 1)
				{
				    SendClientMessage(playerid,COLOR_NICERED,"Esti la parnaie, nu poti concura!
				    return 1;
				}
				if(WantedLevel[playerid] >= 1)
				{
					SendClientMessage(playerid,COLOR_NICERED,"Esti cautat de politie, n-ai timp de LCS.
					return 1;
				}
				if(PlayerZTied[playerid] > 0)
				{
				    SendClientMessage(playerid, COLOR_NICERED, "Esti legat, nu poti concura la Last Car Standing!
				    return 1;
				}
				else
				{
				    SetPlayerPos(playerid,-460.3275,3103.0244,500.9844,0.0285);
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GRAD1, "Eventul LCS nu e activat!");
				}
			}
			return 1;
		}
      		if(strcmp(cmd, "/lcs", true) == 0)
			{
	    		if(IsPlayerConnected(playerid))
	    		{
	    			if (PlayerInfo[playerid][pAdmin] >= 2 && (devent == 0))
	    			{
						lcsevent = 1;
						BroadCast(COLOR_NICERED, " Eventul LCS a fost activat de un Admin! Scrie /joinlcs pentru a concura!");
						}
						else if (PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 1))
						{
						    lcsevent = 0;
						    BroadCast(COLOR_THEMAFIA, " Eventul LCS a fost oprit de un Admin!");
						}
						else
						{
						    SendClientMessage(playerid, COLOR_NICERED, "Nu ai voie sa folosesti aceasta comanda, nu esti admin!");
						}
					}
				}
			}
		}
		return 1;
	}
	return 0;
}

Si nu ai enum-ul PlayerInfo, ai copiat comenzile din alt script dar alea nu.

Posted

Am copiat ce mi-ai dat tu si acum imi da 26 de orori:



C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(1) : error 031: unknown directive

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(5) : error 031: unknown directive

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(77) : warning 217: loose indentation

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(78) : warning 217: loose indentation

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(98) : error 025: function heading differs from prototype

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(98) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(100) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(102) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(105) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(109) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(112) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(114) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(116) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(118) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(121) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(123) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(126) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(128) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(131) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(133) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(136) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(138) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(142) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(147) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(149) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(151) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(153) : error 010: invalid function or declaration

C:\Documents and Settings\Sika\Desktop\sampserver\Samp's Server\filterscripts\LCS.pwn(157) : error 054: unmatched closing brace ("}")

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.

Posted

NexT." post="136096" timestamp="1363848897"]

O acolada lipsa, verifica ce ai modificat.

Tu raspunzi unde e cel mai simplu.

Daca tot ai raspuns mai bine i-ai fi aratat si unde.

			#  #   #   #        #     #      # #    #      		    # #     ##  #   #       #       #
			#  #   #   #  ##    #     #     #***#   #      		   #***#    # # #   #  ##   #***    #
			####   #   #####    #     #    #     #  #####  		  #     #   #   #   #####   ####    #####

			           				         ###         #         ###*
			   				                 #  #       # #        #   *
			    				             #**       #***#       #***#
			   				                 #  #     #     #      # #
			  				                 #**     #       #     #   #
*/

#define FILTERSCRIPT
#include <a_samp>

new lcsevent = 0;
new lcsc1;
new lcsc2;
new lcsc3;
new lcsc4;
new lcsc5;
new lcsc6;
new lcsc7;
new lcsc8;
new lcsc9;
new lcsc10;

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
    CreateObject(8172, -440.37, 3173.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(8172, -480.04, 3173.09, 500.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -499.04, 3252.73, 503.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -421.09, 3252.58, 503.00,   0.00, 0.00, -25.00);
	CreateObject(3524, -421.19, 3094.76, 503.00,   0.00, 0.00, 229.00);
	CreateObject(3524, -499.53, 3093.28, 503.00,   0.00, 0.00, 142.00);
	CreateObject(8483, -460.16, 3186.73, 494.00,   0.00, -90.00, -90.00);
	CreateObject(3268, -460.90, 3102.36, 499.97,   0.00, 0.00, -90.00);
	CreateObject(11245, -447.50, 3094.11, 502.00,   0.00, -60.00, 127.00);
	CreateObject(11245, -474.23, 3093.96, 502.00,   0.00, -60.00, 40.00);
	CreateObject(18647, -463.61, 3105.07, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -462.65, 3104.10, 500.00,   0.00, 0.00, 90.00);
	CreateObject(18647, -461.26, 3105.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -460.28, 3106.09, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -460.28, 3104.12, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.53, 3106.08, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.76, 3105.31, 499.98,   0.00, 0.00, 45.00);
	CreateObject(18647, -458.02, 3104.31, 499.98,   0.00, 0.00, 105.00);
	CreateObject(18761, -461.02, 3112.47, 499.98,   0.00, 0.00, 0.00);
	CreateObject(13667, -461.01, 3114.19, 520.00,   0.00, 0.00, 90.00);
	CreateObject(18785, -430.36, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -435.95, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -485.87, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18785, -489.81, 3102.39, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18066, -460.11, 3106.51, 499.96,   -90.00, 0.00, 0.00);
	CreateObject(8172, -440.37, 3173.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(8172, -480.04, 3173.09, 500.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -499.04, 3252.73, 503.00,   0.00, 0.00, 0.00);
	CreateObject(3524, -421.09, 3252.58, 503.00,   0.00, 0.00, -25.00);
	CreateObject(3524, -421.19, 3094.76, 503.00,   0.00, 0.00, 229.00);
	CreateObject(3524, -496.38, 3093.62, 503.00,   0.00, 0.00, 142.00);
	CreateObject(8483, -460.16, 3186.73, 494.00,   0.00, -90.00, -90.00);
	CreateObject(3268, -460.90, 3102.36, 499.97,   0.00, 0.00, -90.00);
	CreateObject(11245, -447.50, 3094.11, 502.00,   0.00, -60.00, 127.00);
	CreateObject(11245, -474.23, 3093.96, 502.00,   0.00, -60.00, 40.00);
	CreateObject(18647, -463.61, 3105.07, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -462.65, 3104.10, 500.00,   0.00, 0.00, 90.00);
	CreateObject(18647, -461.26, 3105.10, 500.00,   0.00, 0.00, 0.00);
	CreateObject(18647, -460.28, 3106.09, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -460.28, 3104.12, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.53, 3106.08, 499.98,   0.00, 0.00, 90.00);
	CreateObject(18647, -457.76, 3105.31, 499.98,   0.00, 0.00, 45.00);
	CreateObject(18647, -458.02, 3104.31, 499.98,   0.00, 0.00, 105.00);
	CreateObject(18761, -461.02, 3112.47, 499.98,   0.00, 0.00, 0.00);
	CreateObject(13667, -461.01, 3114.19, 520.00,   0.00, 0.00, 90.00);

       lcsc1 = AddStaticVehicle(415,-448.2969,3096.9011,500.7604,358.3995,0,3); //
	lcsc2 = AddStaticVehicle(415,-449.4069,3110.4045,500.7560,90.7424,0,3); //
	lcsc3 = AddStaticVehicle(415,-449.7160,3106.0381,500.7593,89.4468,0,3); //
	lcsc4 = AddStaticVehicle(541,-465.3029,3096.4758,500.6092,359.4644,0,3); //
	lcsc5 = AddStaticVehicle(415,-451.7795,3096.2251,500.7593,357.0129,0,3); //
	lcsc6 = AddStaticVehicle(415,-457.5237,3095.9136,500.7604,358.4154,0,3); //
	lcsc7 = AddStaticVehicle(541,-472.2949,3110.2378,500.6090,271.0478,0,3); //
	lcsc8 = AddStaticVehicle(541,-472.9049,3106.1006,500.6091,269.1479,0,3); //
	lcsc9 = AddStaticVehicle(541,-473.6192,3095.7981,500.6091,359.0208,0,3); //
	lcsc10 = AddStaticVehicle(541,-469.5145,3095.6216,500.6093,358.2925,0,3); //

	print("\n--------------------------------------");
	print(" DiGiTaL_LCS");
	print("--------------------------------------\n");
}

public OnFilterScriptExit()
{
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmd, "/lcsannc", true) == 0)
	{
		if(PlayerInfo[playerid][pAdmin] < 1)
		{
			SendClientMessage(playerid, COLOR_NICERED, "Nu esti autorizat sa folosesti aceasta comanda!";
			return 1;
		}
		SendClientMessageToAll(TEAM_VAGOS_COLOR, "Eventul LCS a fost pornit! Scrie /joinlcs pentru a concura si tu!";
	}
	return 1;
}

	if(strcmp(cmd, "/lcsjoin", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        if lcsevent == 1)
	        {
	            if (GetPlayerState(playerid) == 2)
	            {
	                SendClientMessage(playerid, COLOR_NICERED, "Iesi din masina si incearca iar!
	                return 1;
				}
				if(PlayerInfo[playerid][pJailed] == 1)
				{
				    SendClientMessage(playerid,COLOR_NICERED,"Esti la parnaie, nu poti concura!
				    return 1;
				}
				if(WantedLevel[playerid] >= 1)
				{
					SendClientMessage(playerid,COLOR_NICERED,"Esti cautat de politie, n-ai timp de LCS.
					return 1;
				}
				if(PlayerZTied[playerid] > 0)
				{
				    SendClientMessage(playerid, COLOR_NICERED, "Esti legat, nu poti concura la Last Car Standing!
				    return 1;
				}
				else
				{
				    SetPlayerPos(playerid,-460.3275,3103.0244,500.9844,0.0285);
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GRAD1, "Eventul LCS nu e activat!");
				}
			}

		}
         }
         return 1;
}
      		if(strcmp(cmd, "/lcs", true) == 0)
			{
	    		if(IsPlayerConnected(playerid))
	    		{
	    			if (PlayerInfo[playerid][pAdmin] >= 2 && (devent == 0))
	    			{
						lcsevent = 1;
						BroadCast(COLOR_NICERED, " Eventul LCS a fost activat de un Admin! Scrie /joinlcs pentru a concura!");
						}
						else if (PlayerInfo[playerid][pAdmin] >= 1 && (lcsevent == 1))
						{
						    lcsevent = 0;
						    BroadCast(COLOR_THEMAFIA, " Eventul LCS a fost oprit de un Admin!");
						}
						else
						{
						    SendClientMessage(playerid, COLOR_NICERED, "Nu ai voie sa folosesti aceasta comanda, nu esti admin!");
						}
					}
				}
		return 1;
	}
	return 0;
}

Acum?

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.