TEXT 1
Movie gate FS for combinat By spike on 24th April 2019 09:19:49 PM
  1. //FS Gate for this map: https://paste.agentp.ro/paste.php?id=9
  2.  
  3. #include <a_players>
  4. #include <a_samp>
  5.  
  6.  
  7. new Gate;
  8.  
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.         Gate=CreateObject(987, 1211.6361083984, 2504.6091308594, 10.095755577087, 0, 0, 0);
  13.  
  14.         return 1;
  15. }
  16.  
  17.  
  18. public OnPlayerCommandText(playerid, cmdtext[])
  19. {
  20.         if (strcmp("/spi1", cmdtext, true, 10) ==0) //----you can change "/spi1" to anything of your choice
  21.         {
  22.                 MoveObject(Gate, 1211.6165771484, 2504.8603515625, 15.386470794678, 3);
  23.         SendClientMessage(playerid, 0xAA3333AA,"Ai deschis poarta."); //----you can change this message to anything of your choice
  24.         return 1;
  25.         }
  26.  
  27.  
  28.         if (strcmp("/spi2", cmdtext, true, 10) ==0) //----you can change "/spi2" to anything of your choice
  29.         {
  30.                 MoveObject(Gate, 1211.6361083984, 2504.6091308594, 10.095755577087, 3);
  31.                 SendClientMessage(playerid, 0xAA3333AA,"Ai inchis poarta."); //----you can change this message to anything of your choice
  32.         return 1;
  33.      }
  34.                
  35.         return 1;
  36. }

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.