Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Criado por Monstrinho Verde
- //Copyright - All rights reserved '-'
- //Este FS tem por iniciativa criar um local de atentados para os terroristas, pois os novatos
- //gostam de atentar os locais mais visitados (Prefeitura e DP) e este FS lhes fará atentar as torres
- //Caso encontre algum bug, resolva-o você, pois eu sou novato '-'
- #include <a_samp>
- #define cor_vermelha 0xFF0000
- new torre1;
- new torre2;
- new name[MAX_PLAYER_NAME],string[60];
- public OnFilterScriptInit()
- {
- CreateObject(4585,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000);
- CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
- CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000);
- CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
- CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000);
- CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000);
- CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000);
- CreateObject(3785,1438.00000000,1508.59997559,411.10000610,0.00000000,0.00000000,0.00000000);
- CreateObject(3785,1437.80004883,1508.80004883,411.10000610,0.00000000,0.00000000,0.00000000);
- //torres
- torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
- torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
- return 1;
- }
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- if(strcmp(cmdtext,"/atentartorre1",true)==0)
- {
- MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"%s atentou a primeira torre!", name);
- SendClientMessageToAll(-1,string);
- return 1;
- }
- if (strcmp(cmdtext,"/atentartorre2",true)==0)
- {
- MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"%s a segunda torre!", name);
- SendClientMessageToAll(-1,string);
- return 1;
- }
- if(strcmp(cmdtext,"/desatentartorre1",true)==0)
- {
- MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
- SendClientMessageToAll(-1, "O atentado à primeira torre acabou.");
- return 1;
- }
- if(strcmp(cmdtext,"desatentartorre2",true)==0)
- {
- MoveObject(torre2,1436.30004883,1509.19995117,275.60000610,3.0);
- SendClientMessageToAll(-1, "O atentado à segunda torre acabou.");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement