SHOW:
|
|
- or go back to the newest paste.
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 | //Correção por humildadeforever < +rep | |
7 | ||
8 | #include <a_samp> | |
9 | ||
10 | ||
11 | #define cor_vermelha 0xFF0000 | |
12 | ||
13 | new torre1; | |
14 | new torre2; | |
15 | ||
16 | ||
17 | public OnFilterScriptInit() | |
18 | { | |
19 | torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000); | |
20 | torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512); | |
21 | CreateObject(4585,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000); | |
22 | CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000); | |
23 | CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000); | |
24 | CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512); | |
25 | CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000); | |
26 | CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000); | |
27 | CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000); | |
28 | CreateObject(3785,1438.00000000,1508.59997559,411.10000610,0.00000000,0.00000000,0.00000000); | |
29 | CreateObject(3785,1437.80004883,1508.80004883,411.10000610,0.00000000,0.00000000,0.00000000); | |
30 | return 1; | |
31 | } | |
32 | public OnPlayerCommandText(playerid,cmdtext[]) | |
33 | { | |
34 | new name[MAX_PLAYER_NAME]; | |
35 | GetPlayerName(playerid,name,sizeof(name)); | |
36 | new string[70]; | |
37 | if(strcmp(cmdtext,"/atentartorre1",true)==0) | |
38 | { | |
39 | MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0); | |
40 | format(string,sizeof(string),"%s atentou a primeira torre gemea", name); | |
41 | SendClientMessageToAll(-1,string); | |
42 | return 1; | |
43 | } | |
44 | if (strcmp(cmdtext,"/atentartorre2",true)==0) | |
45 | { | |
46 | MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0); | |
47 | format(string,sizeof(string),"%s atentou a segunda torre gemea", name); | |
48 | SendClientMessageToAll(-1,string); | |
49 | return 1; | |
50 | } | |
51 | if(strcmp(cmdtext,"/desatentartorre1",true)==0) | |
52 | { | |
53 | MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0); | |
54 | SendClientMessageToAll(-1,"O atentado à primeira torre gémea acabou"); | |
55 | return 1; | |
56 | } | |
57 | if (strcmp(cmdtext,"/desatentartorre2",true)==0) | |
58 | { | |
59 | MoveObject (torre2,1436.30004883,1509.19995117,275.60000610,3.0); | |
60 | SendClientMessageToAll(-1,"O atentado à segunda torre gémea acabou"); | |
61 | return 1; | |
62 | } | |
63 | return 0; | |
64 | } |