toribio

toribio

Oct 13th, 2008
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. //se n�o tiver o public OnPlayerKeyStateChange, coloque isso:
  2. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  3. {
  4.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  5.     {
  6.         OnPlayerCommandText(playerid, "/entrar");
  7.         OnPlayerCommandText(playerid, "/sair");
  8.     }
  9.     return 1;
  10. }
  11.  
  12. //se tiver o public... apenas coloque isso dentor dele:
  13.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  14.     {
  15.         OnPlayerCommandText(playerid, "/entrar");
  16.         OnPlayerCommandText(playerid, "/sair");
  17.     }
  18.  
Add Comment
Please, Sign In to add comment