Guest User

[FS]Atentado a Torre Gêmeas [Total-Samp]

a guest
May 13th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. public OnFilterScriptInit()
  20. {
  21.         torre1 = 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,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000);
  24.         CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
  25.         CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000);
  26.         CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
  27.         CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000);
  28.         CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000);
  29.         CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000);
  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. public OnPlayerCommandText(playerid,cmdtext[])
  35. {
  36.         new name[MAX_PLAYER_NAME];
  37.         GetPlayerName(playerid,name,sizeof(name));
  38.         new string[70];
  39.         if(strcmp(cmdtext,"/atentartorre1",true)==0)
  40.         {
  41.                 MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
  42.                 format(string,sizeof(string),"%s atentou a primeira torre gemea", name);
  43.                 SendClientMessageToAll(-1,string);
  44.                 return 1;
  45.         }
  46.         if (strcmp(cmdtext,"/atentartorre2",true)==0)
  47.         {
  48.                 MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
  49.                 format(string,sizeof(string),"%s atentou a segunda torre gemea", name);
  50.                 SendClientMessageToAll(-1,string);
  51.                 return 1;
  52.         }
  53.         if(strcmp(cmdtext,"/desatentartorre1",true)==0)
  54.         {
  55.                 MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
  56.                 SendClientMessageToAll(-1,"O atentado à primeira torre gémea acabou");
  57.                 return 1;
  58.         }
  59.         if (strcmp(cmdtext,"/desatentartorre2",true)==0)
  60.         {
  61.                 MoveObject (torre2,1436.30004883,1509.19995117,275.60000610,3.0);
  62.                 SendClientMessageToAll(-1,"O atentado à segunda torre gémea acabou");
  63.                 return 1;
  64.         }
  65.         return 0;
  66. }
Advertisement
Add Comment
Please, Sign In to add comment