[Ajuda] Teleporte para interior [PICKUP/F-ENTER]
#6

tenta ae...
Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) //
{

     if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) //si apertar F...
     {
         if(IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) //aqui vem a coordenada da pickup
         {
         SetPlayerPos(playerid, x,y,z); // coordenadas do interior 
         SetPlayerInterior(playerid, 0);// id do interior
         SendClientMessage(playerid,-1,"vocк entrou em algum lugar!");// mensagem qnd entrar
         }
 }
     return 1;
}
Reply


Messages In This Thread
Teleporte para interior [PICKUP/F-ENTER] - by f1rmeza - 23.12.2018, 21:00
Re: Teleporte para interior [PICKUP/F-ENTER] - by ipsLuan - 23.12.2018, 21:05
Re: Teleporte para interior [PICKUP/F-ENTER] - by 1sbedx - 23.12.2018, 21:09
Re: Teleporte para interior [PICKUP/F-ENTER] - by f1rmeza - 23.12.2018, 21:38
Re: Teleporte para interior [PICKUP/F-ENTER] - by f1rmeza - 23.12.2018, 22:06
Re: Teleporte para interior [PICKUP/F-ENTER] - by MsL19 - 23.12.2018, 22:21

Forum Jump:


Users browsing this thread: 1 Guest(s)