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