Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //se n�o tiver o public OnPlayerKeyStateChange, coloque isso:
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- OnPlayerCommandText(playerid, "/entrar");
- OnPlayerCommandText(playerid, "/sair");
- }
- return 1;
- }
- //se tiver o public... apenas coloque isso dentor dele:
- if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- {
- OnPlayerCommandText(playerid, "/entrar");
- OnPlayerCommandText(playerid, "/sair");
- }
Add Comment
Please, Sign In to add comment