Advertisement
Aninhaah

FilterScript Monstrinho Verde - Torres Gemeas

Feb 21st, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.57 KB | None | 0 0
  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.  
  7. #include <a_samp>
  8.  
  9.  
  10. #define cor_vermelha 0xFF0000
  11.  
  12. new torre1;
  13. new torre2;
  14.  
  15.  
  16. public OnFilterScriptInit()
  17. {
  18.     torre1 = CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
  19.     torre2 = CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
  20.     CreateObject(4585,1436.09997559,1369.40002441,99.80000305,0.00000000,0.00000000,0.00000000);
  21.     CreateObject(4585,1436.59997559,1369.50000000,275.39999390,0.00000000,0.00000000,90.00000000);
  22.     CreateObject(4585,1432.80004883,1510.00000000,99.80000305,0.00000000,0.00000000,358.00000000);
  23.     CreateObject(4585,1436.30004883,1509.19995117,275.60000610,0.00000000,0.00000000,357.99499512);
  24.     CreateObject(13728,1438.00000000,1508.90002441,390.39999390,0.00000000,0.00000000,0.00000000);
  25.     CreateObject(3785,1438.40002441,1508.90002441,411.20001221,0.00000000,0.00000000,0.00000000);
  26.     CreateObject(3785,1438.00000000,1509.19995117,411.10000610,0.00000000,0.00000000,0.00000000);
  27.     CreateObject(3785,1438.00000000,1508.59997559,411.10000610,0.00000000,0.00000000,0.00000000);
  28.     CreateObject(3785,1437.80004883,1508.80004883,411.10000610,0.00000000,0.00000000,0.00000000);
  29.     return 1;
  30. }
  31. public OnPlayerCommandText(playerid,cmdtext[])
  32. {
  33.     new name[MAX_PLAYER_NAME];
  34.     GetPlayerName(playerid,name,sizeof(name));
  35.     new string[70];
  36.     if(strcmp(cmdtext,"/atentartorre1",true)==0)
  37.     {
  38.         MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
  39.         format(string,sizeof(string),"%s atentou a primeira torre gemea", name);
  40.         SendClientMessageToAll(-1,string);
  41.         return 1;
  42.     }
  43.     if (strcmp(cmdtext,"/atentartorre2",true)==0)
  44.     {
  45.         MoveObject(torre2,1432.80004883,1510.00000000,99.80000305,3.0);
  46.         format(string,sizeof(string),"%s atentou a segunda torre gemea", name);
  47.         SendClientMessageToAll(-1,string);
  48.         return 1;
  49.     }
  50.     if(strcmp(cmdtext,"/desatentartorre1",true)==0)
  51.     {
  52.         MoveObject(torre1,1436.09997559,1369.40002441,99.80000305,3.0);
  53.         SendClientMessageToAll(-1,"O atentado à primeira torre gémea acabou");
  54.         return 1;
  55.     }
  56.     if (strcmp(cmdtext,"/desatentartorre2",true)==0)
  57.     {
  58.         MoveObject (torre2,1436.30004883,1509.19995117,275.60000610,3.0);
  59.         SendClientMessageToAll(-1,"O atentado à segunda torre gémea acabou");
  60.         return 1;
  61.     }
  62.     return 0;
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement