SHARE
TWEET

Untitled

a guest Mar 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  2. {
  3.     if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
  4.     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  5.  
  6.     cmd_entrar(playerid, "");
  7.     cmd_sair(playerid, "");
  8.     return 1;
  9. }
  10.  
  11. CMD:entrar(playerid, params[]){
  12.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 1368.8335,-1279.9176,13.5469))//quando ele tiver nessa posição // [LOJA DE ARMAS DE LS]
  13.     {
  14.         //se quiser testar vai ate a porta de armas de ls e aperta f ou /entrar no sair e a mesma coisa
  15.         SetPlayerInterior(playerid, 6); //entrarar aqui nesse interior
  16.         SetPlayerPos(playerid, 296.7978, -112.0704, 1001.5156); //entrarar aqui nessa posição
  17.         GameTextForPlayer(playerid, "~b~~h~~h~Loja de armas de LS ~r~~h~1", 5000, 1);
  18.         PlayAudioStreamForPlayer(playerid, "");
  19.     }
  20.     //exemplo caso queira adicionar mais lugares
  21.     /*if(IsPlayerInRangeOfPoint(playerid, 3.0, 1368.8335,-1279.9176,13.5469)) // [LOJA DE ARMAS DE LS]
  22.     {
  23.         SetPlayerInterior(playerid, 6);
  24.         SetPlayerPos(playerid, 296.7978, -112.0704, 1001.5156);
  25.         GameTextForPlayer(playerid, "~b~~h~~h~Loja de armas de LS ~r~~h~1", 5000, 1);
  26.         PlayAudioStreamForPlayer(playerid, "");
  27.     }*/
  28.     return 1;
  29. }
  30. CMD:sair(playerid, params[]){
  31.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 297.0306,-111.7399,1001.5156)) // [LOJA DE ARMAS DE LS]
  32.     {
  33.         SetPlayerInterior(playerid, 0);
  34.         SetPlayerPos(playerid, 1367.7371,-1279.5270,13.5469);
  35.         PlayAudioStreamForPlayer(playerid, "");
  36.     }
  37.     return 1;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top