27.03.2015, 17:23
OnPlayerPickUpPickup
Pickups IDS
Pickups IDS
PHP код:
new Hospital[2];
public OnGameModeInit()
{
Hospital[0] = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1); // Aqui vocк coloca as coordenadas para entrar
Hospital[1] = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1); // Aqui vocк coloca as coordenadas de sair
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Hospital[0]) // Entrar
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1177.3695, -1340.4095, 9280.5693);
}
else if(pickupid == Hospital[1]) // Sair
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1172.5526, -1323.2614, 15.4028);
}
return 1;
}