toribio

toribio

Nov 12th, 2008
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.82 KB | None | 0 0
  1. //no topo:
  2. new portao1A;
  3.  
  4. //no OnGameModeInit:
  5. portao1A = CreateObject(975, 1544.886108, -1626.800415, 14.057503, 0.0000, 0.0000, 90.2408);
  6.  
  7. //no OnPlayerCommandText:
  8.     if(strcmp(cmdtext, "/ap1", true) == 0 || strcmp(cmdtext, "/aportao1", true) == 0)
  9.     {
  10.         if(gTeam[playerid] == 2 || IsACop(playerid))
  11.         {
  12.             MoveObject(portao1A, 1544.889160, -1619.607056, 14.057503, 3.00);
  13.         } else {
  14.             SendClientMessage(playerid, COLOR_GRAD2, "Voc� n�o � policial para entrar a�!");
  15.         }
  16.         return 1;
  17.     }
  18.  
  19.     if(strcmp(cmdtext, "/fp1", true) == 0 || strcmp(cmdtext, "/fportao1", true) == 0)
  20.     {
  21.         if(gTeam[playerid] == 2 || IsACop(playerid))
  22.         {
  23.             MoveObject(portao1A, 1544.886108, -1626.800415, 14.057503, 3.00);
  24.         } else {
  25.             SendClientMessage(playerid, COLOR_GRAD2, "Voc� n�o � policial para fechar este port�o!");
  26.         }
  27.         return 1;
  28.     }
Add Comment
Please, Sign In to add comment