pawn Код:
//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>
#pragma tabsize 0
#define cor_vermelha 0xFF0000
new torre1;
new torre2;
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);
public OnFilterScriptInit()
{
torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
MoveObject(torre2,1436.30004883,1509.19995117,275.60000610,3.0);
return 0;
}
public OnPlayerCommandText(playerid,cmdtext[])
{
if(strcmp(cmdtext,"/atentartorre1",true)==0) {
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
SendClientMessageToAll("%s atentou a primeira torre gйmea")
return 1;
}
if (strcmp(cmdtext,"atentartorre2",true)==0 {
MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
SendClientMessageToAll("%s atentou a segunda torre gйmea")
return 1;
}
if(strcmp(cmdtext,"/desatentartorre1",true)==0) {
MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
SendClientMessageToAll("O atentado а primeira torre gйmea acabou")
return 1;
}
if (strcmp(cmdtext,"desatentartorre2",true)==0) {
MoveObject (torre2,1436.30004883,1509.19995117,275.60000610,3.0);
SendClientMessageToAll("O atentado а segunda torre gйmea acabou")
return 0;
}