All pastes #1074271 Raw Edit

Minenfeld

public text v1 · immutable
#1074271 ·published 2008-07-17 11:15 UTC
rendered paste body
#include <a_samp>
#include <properties>


#define FILTERSCRIPT

#if defined FILTERSCRIPT
forward mine1();
forward mine2();
forward mine3();
forward mine4();
forward mine5();
forward mine6();
forward mine7();
forward mine8();
forward mine9();
forward mine10();
forward mine11();
forward mine12();
forward mine13();
forward mine14();
forward mine15();
forward mine16();
forward mine17();
forward mine18();
forward mine19();

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Minenfeld"); by Col JackOneill
	print("--------------------------------------\n");
	SetTimer("mine1", 500, true);
	SetTimer("mine2", 500, true);
	SetTimer("mine3", 500, true);
	SetTimer("mine4", 500, true);
	SetTimer("mine5", 500, true);
	SetTimer("mine6", 500, true);
	SetTimer("mine7", 500, true);
	SetTimer("mine8", 500, true);
	SetTimer("mine9", 500, true);
	SetTimer("mine10", 500, true);
	SetTimer("mine11", 500, true);
	SetTimer("mine12", 500, true);
	SetTimer("mine13", 500, true);
	SetTimer("mine14", 500, true);
	SetTimer("mine15", 500, true);
	SetTimer("mine16", 500, true);
	SetTimer("mine17", 500, true);
	SetTimer("mine18", 500, true);
	SetTimer("mine19", 500, true);
	return 1;
}

#endif
public mine1()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3482.5576, 2253.0313, 12.7884))
                        {
                                CreateExplosion (3482.5576, 2253.0313, 12.7884,2,5);
                        }
                }
        }
}
public mine2()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3479.3896, 2250.7307, 12.7700))
                        {
                                CreateExplosion (3479.3896, 2250.7307, 12.7700,2,5);
                        }
                }
        }
}
public mine3()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3475.6462, 2256.9138, 12.8099))
                        {
                                CreateExplosion (3475.6462, 2256.9138, 12.8099,2,5);
                        }
                }
        }
}
public mine4()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3472.6343, 2253.6580, 12.8036))
                        {
                                CreateExplosion (3472.6343, 2253.6580, 12.8036,2,5);
                        }
                }
        }
}
public mine5()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3464.0085, 2242.8657, 12.6192))
                        {
                                CreateExplosion (3464.0085, 2242.8657, 12.6192,2,5);
                        }
                }
        }
}
public mine6()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3466.6602, 2254.2341, 12.7868))
                        {
                                CreateExplosion (3466.6602, 2254.2341, 12.7868,2,5);
                        }
                }
        }
}
public mine7()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3456.3828, 2250.0208, 12.7345))
                        {
                                CreateExplosion (3456.3828, 2250.0208, 12.7345,2,5);
                        }
                }
        }
}
public mine8()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3448.1584, 2243.8865, 12.6537))
                        {
                                CreateExplosion (3448.1584, 2243.8865, 12.6537,2,5);
                        }
                }
        }
}
public mine9()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3452.9270, 2257.4421, 12.7868))
                        {
                                CreateExplosion (3452.9270, 2257.4421, 12.7868,2,5);
                        }
                }
        }
}
public mine10()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3447.2878, 2253.1096, 12.7815))
                        {
                                CreateExplosion (3447.2878, 2253.1096, 12.7815,2,5);
                        }
                }
        }
}
public mine11()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3433.7627, 2247.4980, 12.6477))
                        {
                                CreateExplosion (3433.7627, 2247.4980, 12.6477,2,5);
                        }
                }
        }
}
public mine13()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3440.5676, 2255.7114, 12.7848))
                        {
                                CreateExplosion (3440.5676, 2255.7114, 12.7848,2,5);
                        }
                }
        }
}
public mine14()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3491.8611, 2261.9346, 12.9386))
                        {
                                CreateExplosion (3491.8611, 2261.9346, 12.9386,2,5);
                        }
                }
        }
}
public mine15()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3490.6897, 2252.2437, 12.7874))
                        {
                                CreateExplosion (3490.6897, 2252.2437, 12.7874,2,5);
                        }
                }
        }
}
public mine16()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3488.1033, 2244.6802, 12.6904))
                        {
                                CreateExplosion (3488.1033, 2244.6802, 12.6904,2,5);
                        }
                }
        }
}
public mine19()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3429.3723, 2254.4978, 12.7782))
                        {
                                CreateExplosion (3429.3723, 2254.4978, 12.7782,2,5);
                        }
                }
        }
}
public mine17()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i, 3444.0569, 2249.8926, 12.7446))
                        {
                                CreateExplosion (3444.0569, 2249.8926, 12.7446,2,5);
                        }
                }
        }
}
public mine18()
{
        for(new i=0; i<MAX_PLAYERS; i++) {
                if(IsPlayerConnected(i)) {
                        if(PlayerToPoint(3.0, i,3476.2625, 2244.7354, 12.6147))
                        {
                                CreateExplosion (3476.2625, 2244.7354, 12.6147,2,5);
                        }
                }
        }
}