[Ajuda] Sistema de Hospital!
#2

OnPlayerPickUpPickup
Pickups IDS

PHP код:
new Hospital[2];

public 
OnGameModeInit()
{

    
Hospital[0] = CreatePickup(124221503.33591432.358510.1191, -1); // Aqui vocк coloca as coordenadas para entrar
    
Hospital[1] = CreatePickup(124221503.33591432.358510.1191, -1); // Aqui vocк coloca as coordenadas de sair 
    
return 1;
}

public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == Hospital[0]) // Entrar
    
{
        
        
SetPlayerInterior(playerid1);
        
SetPlayerPos(playerid1177.3695, -1340.40959280.5693);
    }
    else if(
pickupid == Hospital[1]) // Sair
    
{
        
        
SetPlayerInterior(playerid0);
        
SetPlayerPos(playerid1172.5526, -1323.261415.4028);
    }
    return 
1;

Reply


Messages In This Thread
Sistema de Hospital! - by jefrens - 27.03.2015, 16:49
Re: Sistema de Hospital! - by Whoo - 27.03.2015, 17:23
Re: Sistema de Hospital! - by DiegoLeo - 27.03.2015, 17:55
Re: Sistema de Hospital! - by jefrens - 28.03.2015, 02:03

Forum Jump:


Users browsing this thread: 1 Guest(s)