View difference between Paste ID: Ai4AtUcW and ENAPF1re
SHOW: | | - or go back to the newest paste.
1-
//Criado por Monstrinho Verde e corrigido por Lucas_Alemao
1+
//Criado por Monstrinho Verde
2
//Copyright - All rights reserved '-'
3
//Este FS tem por iniciativa criar um local de atentados para os terroristas, pois os novatos
4
//gostam de atentar os locais mais visitados (Prefeitura e DP) e este FS lhes fará atentar as torres
5
//Caso encontre algum bug, resolva-o você, pois eu sou novato '-'
6
7
#include <a_samp>
8
9
#define cor_vermelha 0xFF0000
10
11
new torre1;
12
new torre2;
13
new name[MAX_PLAYER_NAME],string[60];
14
15
16
public OnFilterScriptInit()
17
{
18
	CreateObject(4585,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000);
19
	CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
20
	CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000);
21
	CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
22
	CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000);
23
	CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000);
24
	CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000);
25
	CreateObject(3785,1438.00000000,1508.59997559,411.10000610,0.00000000,0.00000000,0.00000000);
26
	CreateObject(3785,1437.80004883,1508.80004883,411.10000610,0.00000000,0.00000000,0.00000000);
27
	//torres
28
	torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
29
	torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
30
	return 1;
31
}
32
public OnPlayerCommandText(playerid,cmdtext[])
33
{
34
	if(strcmp(cmdtext,"/atentartorre1",true)==0)
35
	{
36
		MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
37
		GetPlayerName(playerid,name,sizeof(name));
38
		format(string,sizeof(string),"%s atentou a primeira torre!", name);
39
		SendClientMessageToAll(-1,string);
40
		return 1;
41
	}
42
	if (strcmp(cmdtext,"/atentartorre2",true)==0)
43
	{
44
		MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
45
		GetPlayerName(playerid,name,sizeof(name));
46
		format(string,sizeof(string),"%s a segunda torre!", name);
47
		SendClientMessageToAll(-1,string);
48
		return 1;
49
	}
50
	if(strcmp(cmdtext,"/desatentartorre1",true)==0)
51
	{
52
		MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
53
		SendClientMessageToAll(-1, "O atentado à primeira torre acabou.");
54
		return 1;
55
	}
56
	if(strcmp(cmdtext,"desatentartorre2",true)==0)
57
	{
58
		MoveObject(torre2,1436.30004883,1509.19995117,275.60000610,3.0);
59
		SendClientMessageToAll(-1, "O atentado à segunda torre acabou.");
60
		return 1;
61
	}
62
	return 1;
63
}